Page 1 of 1 1
Topic Options
#79572 - 2003-02-28 04:38 AM Varying behaviour on MOVE command
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I also posted this on SL http://www.scriptlogic.com/support/forums/display_message.asp?mid=6342

OK, testing COPY on 4.21rc1 gives good results.

Testing MOVE /S now works too but I do have concerns though that the behaviour varies depending on whether the destination pre-exists or not.

Assuming the source and destination are peers, if the destination pre-exists, the source is moved to the destination and appears one level down the tree but if the destination doesn't exist it remains a peer (a true rename) to the source.

I understand that by making MOVE (RENAME) a dual purpose command this may be expected, but still it is bound to confuse.

Thoughts?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#79573 - 2003-02-28 03:14 PM Re: Varying behaviour on MOVE command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
obvious buggie.

so, no release for some time...
I have also a problem, but not sure it has to do with 4.2x but kix in general.

thanks for the info, dude.
_________________________
!

download KiXnet

Top
#79574 - 2003-02-28 06:23 PM Re: Varying behaviour on MOVE command
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
To me, this is expected behaviour. In fact, as far as I can tell, it is precisely what the native REN and MOVE commands do (ie: rename a directory if the target does not exist).

Still, it is a very complicated matter (because of all the exceptions), so any thoughts are most welcome.

Regards,

Ruud

Top
#79575 - 2003-02-28 07:10 PM Re: Varying behaviour on MOVE command
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Ok, I'll give you that... it does mimic the DOS command. It still does not reduce the confusion. Perhaps some better verbage in the manual.
quote:
MOVE
Action
Moves files and renames files and directories.

Syntax
MOVE "source" "destination" [/h] [/s]

/h Moves/renames hidden and system files also.
/s Renames specified files in all subdirectories.

Remarks
Wildcards are supported.
If a file already exists at the destination, it is overwritten without warning.

If I may critique...

Moves files and renames files and directories
It also moves folders so not really precise. Perhaps "Moves and/or renames files and/or directories"

The operations vary depending on whether the source is a file or folder and whether the destination exists.

If the destination folder exists, the source folder will be moved into the destination folder, keeping its original name.

If the destination folder does not exist, the source folder will be renamed to the destination.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.052 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.