No announcement yet.

delete using "select left.exact.files" list

  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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