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

Author Message
cyberguyen
[View user's profile]

Joined: 2011-07-15
Posts: 2
Location: Denmark
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Well, it is not a bug. There's no mention of "option exclude" forking for "mv" command. It works for transfers and synchronization only.
_________________
Martin Prikryl
cyberguyen
[View user's profile]

Joined: 2011-07-15
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
This request has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=704
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License