Topic "Get with *.* are downloading also Directories"

Author Message
iZueL

Guest


Hello!

I´m having a problem. The home directory of the Ftp contains 30 Folders and some ".xls" files. When I run the following command,

Code:
get *.* C:\Temp


, WinSCP is downloading all the .xls files but all the Folders too... The folders name are not containing any "." so I don´t understand why the command is not just downloading the .xls files.

I´m missing something??

(WinSCP 5.5.4)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
It's a Windows convention (Or maybe a backward compatibility hack with DOS).

In Windows, the . is not a really part of the file name, just a separator between name and extension. In most cases using name and name. refers to the same file (name without an extension).

Try dir *.* on Windows command line. It behaves identically to WinSCP.

Actually WinSCP is made explicitly to mimic this convention, it's not any side-effect nor bug. See https://winscp.net/eng/docs/file_mask#exceptions

If you want to avoid downloading subdirectories, see:
https://winscp.net/eng/docs/faq_script_non_recursive
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