Post a reply

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

martin

Re: Only move all the files in a directory to a subdirectory

There no easy way to do this.
You could enable XML logging, list the contents of the directory, generate set of mv commands only for the files and run the command set.
See documentation:
https://winscp.net/eng/docs/guide_interpreting_xml_log
Dominion

Only move all the files in a directory to a subdirectory

Hi,

I have a directory called /Root/ and I need to copy only the files that exist in /Root/ to /Root/SubDir

When i execute "mv *.* /SubDir/ it fails telling me I cannot copy the file SubDir to /Subdir/Subdir

Is it possible to only moves the files in the current directory, or will it always copy the directories whenever i provide the wildcard?