Copy/MoveTo Switches Not Matching BackupTo.

Features wanted...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Copy/MoveTo Switches Not Matching BackupTo.

Post by SkyFrontier »

Copy/moveto switches for name collision doesn't match with BackuTo's: "4" means "copy file+full branch" regarding copyto and means "append number" for backupto.
I'm probably missing something here, so please advise.
They could have some correspondence if available, and if not, have some as much as possible (not having access to a list for switches is leading me to guess, sorry).
-can someone please point me the full list for CopyTo/MoveTo switches, if available?

Code: Select all

v8.60.0104 - 2009-11-13 13:00
    + SC backupto enhanced: Now you can set the behavior on collision 
      right in the call.
      Syntax: backupto location, [source], [on_collision]
        on_collision:
          0 = [Default] Use global setting from Configuration | Backup & 
              Report | On name collision
          1 = Overwrite only older files
          2 = Overwrite always
          3 = Overwrite never
          4 = Suffix number
          5 = Suffix date now
          6 = Suffix date modified
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Copy/MoveTo Switches Not Matching BackupTo.

Post by serendipity »

SkyFrontier wrote: -can someone please point me the full list for CopyTo/MoveTo switches, if available?
Come one! by now you should know about scripting help. Refer to menu "Help>Help on Scripting commands".

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Copy/MoveTo Switches Not Matching BackupTo.

Post by SkyFrontier »

Serendipity:

Code: Select all

Come one! by now you should know about scripting help. Refer to menu "Help>Help on Scripting commands".
Try that script using "copyto" instead of "backupto" and you'll know what I'm talking about, if this was not enough...

Self:
Copy/moveto switches for name collision doesn't match with BackuTo's: "4" means "copy file+full branch" regarding copyto and means "append number" for backupto.
C'mon, we're all human after all (and I'm a busy one trying not to fiddle with stuff others could help as I'm trying to help the way I'm able to!)!!!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Copy/MoveTo Switches Not Matching BackupTo.

Post by serendipity »

SkyFrontier wrote: Try that script using "copyto" instead of "backupto" and you'll know what I'm talking about, if this was not enough...
I won't bother to, knowing that help clearly states collisions are allowed only in backupto command.
moveto, copyto, backupto

Move/Copy/Backup the selected items to the specified location.

Syntax

moveto location, [source], [rootpath], [filesonly]

copyto location, [source], [rootpath], [filesonly]

backupto location, [source], [on_collision], [preserve_dates], [create_log], [pop_stats]

location [required] The destination where the selected items should be moved/copied/backed up to.

[source] [optional] The items that will be moved, instead of using selected items of the focused control (List, Tree, Catalog). Alternatively it can point to the source control (:tree, :list, or :catalog).

[rootpath] [optional; moveto/copyto only] Common root for a rich operation (source paths are recreated in the target location relative to rootpath). Slashed or unslashed makes no difference.

[filesonly] [optional; moveto/copyto only] Copy or move files only (and skip folders).

0 = For sources containing wildcards both files and folders are copied. (Default)

1 = For sources containing wildcards only files are copied.

[on_collision] [optional; backupto only]

0 = [Default] Use global setting from Configuration | File Operations | On name collisions

1 = Overwrite only older files

2 = Overwrite always

3 = Overwrite never

4 = Suffix number

5 = Affix current date

6 = Affix last modified date

[preserve_dates] [optional; backupto only] Preserve all three file dates (only applied if the file itself is copied).

Empty = Use global setting from Configuration.

0 = Whether/which dates are copied depends on OS.

1 = All three dates are copied.

[create_log] [optional; backupto only] Create a detailed log file about the backup operation.

Empty = Use global setting from Configuration.

0 = Don't.

1 = Do.

[pop_stats] [optional; backupto only] Pop up a summary message about what was copied / overwritten / not overwritten.

Empty = Use global setting from Configuration.

0 = Don't.

1 = Do.
BTW, i know you are busy and doing a good job compiling stuff like a good librarian does. I was just jokingly referring to the fact that sometimes librarians should also know what information is where. :wink:

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Copy/MoveTo Switches Not Matching BackupTo.

Post by SkyFrontier »

Pro-active, content producer librarian, as we can see... :wink:
But that's exactly the point, Serendipity:
[optional; backupto only]
-I'd like to have the option to match some functions between them. In case of that little dumb script (and potentially others, of course, and that's my aim!), this would make a positive impact.
-and the busy stuff here is the REAL LIFE (sic) thing, as I'm currently involved in some real business currently. Digital+real+personal life, I'm in need of hiring another 2 or 3 Skyfrontiers out there... lol
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply