BUG - MV does not honor option exclude */ for directories

Advertisement

cyberguyen
Joined:
Posts:
2
Location:
Denmark

BUG - MV does not honor option exclude */ for directories

BUG - MV does not honor option exclude */ for directories

Version: WinSCP 4.3.3.1340

OS: Windows XP SP3

Server OS: unknown

Transfer protocol: SFTP

Command line used

Running after login to server:
option exclude */
(to exclude directories)

mv /test/* /test/new/
(should now only move files and not dir)

But it moves every dir in the /test folder into the /test/new folder

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: BUG - MV does not honor option exclude */ for directories

Well, it is not a bug. There's no mention of "option exclude" forking for "mv" command. It works for transfers and synchronization only.

Reply with quote

cyberguyen
Joined:
Posts:
2
Location:
Denmark

Hi Martin, I tend to think it would be logical to include the exclude options in the mv command as well as in the get and put.

It's impossible to do a wildcard * move and omit the directories.

Example if I want to move the root from a website into a folder but not the whole
structure with subfolders.

Reply with quote

Advertisement

You can post new topics in this forum