Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

cyberguyen

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.
martin

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.
cyberguyen

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