Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2016
    Posts
    1

    Default delete using "select left.exact.files" list

    The following script produces the correct list within output file, but does not delete any files within same list:

    load "profileAccount Dropbox?Account Team Folder/ServerName" " "
    filter -folderName\
    filter cutoff:>7days
    expand all
    select left.exact.files
    folder-report layout:summary options:display-mismatches output-to:"C:\Users\jkringel\Documents\BeyondCompare\Logs \bcreport.html" output-options:html-color
    delete left

    Syntax issue?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,609

    Default

    The report and the delete command aren't operating on the same files.

    The report uses "display-mismatches", so it lists files that are different based on the default size and modified timestamp criteria. Folder report doesn't use selection, so "select left.exact.files" doesn't affect it.

    The delete command operates on selected files. left.exact.files selects files that are exact matches, meaning they exist on both sides and have matching timestamps and size.

    If nothing is deleted by the script, it means there are no exact matches.

    If you want your report to list the files affected by "select left.exact.files", you should change it to "options:display-matches".

    If you want to select files that match "options:display-mismatches" from your report, then you should change the select command to "select left.diff.files left.orphan.files".
    Chris K Scooter Software

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •