Topic "Same names files downloads from Linux OS to Windows OS"

Author Message
Guest




I have the current scenario and need some help:

Trying to download files from Linux OS to Windows OS, these files have exactly same names on Linux

Folder but when copying them files to a Windows based OS Folder the files with the same name can not be

Copied on to the Windows Folder unless files are renamed.

I have to manually rename these files so I can copy them on to the windows folder. The number of files

with the same name are growing and doing this as a manual process is painful

Sample as follows

"On Linux Server OS"

There is a folder called \var\vpn
Sample of 2 files on the folder with same name are:

name.xml
NAME.xml

Note the same name but case sensitive

Linux Supports having files with the same on the same folder as long as the files are typed differently

lower case / upper case

Any hints to come up with a script that allows WinSCP to get these files downloaded on to Windows based File System Folders ??
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
How would you want WinSCP to actually deal with it?
_________________
Martin Prikryl
manuelbrozo
[View user's profile]

Joined: 2011-02-11
Posts: 2
Location: Aust
Trying to get WinSCP to rename similar files or add at least two characters to the begining of the file as an example

Files with the same name WinSCP to download them and rename the file downloaded by adding an "x-" to the beginning of each file

Lets say if Name.xml and nAme.xml are found download both files but rename nAme.xml to x-nAme.xml or get nAme.xml to be saved on to a separate Folder on the Windows File System

This is what I am currently doing but manually..
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
OK, WinSCP could do this, if both files are part of the same download batch. Is this your case? If you already have name.xml in local directory and you are downloading Name.xml, WinSCP cannot know, if those files are the same or different.
_________________
Martin Prikryl
manuelbrozo
[View user's profile]

Joined: 2011-02-11
Posts: 2
Location: Aust
Yes both files are part of the same download batch and the destination File System will be empty, no files at all.. Sounds like you know a lot about the scripting of this application
Guest




Any chance if you can tell me what command to use on the script or a script to achieve this ??

Thanks a lot in advance !!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
There's no way to achieve this. I was just asking to understand your problem, so I can think of possible implementation to solve it. Of course when I find that more people would benefit from it.
_________________
Martin Prikryl
Guest




No problem, thanks anyway !! Very Happy
ChuckNewman
[View user's profile]

Joined: 2011-06-09
Posts: 2
According to Microsoft https://support.microsoft.com/en-us/kb/100625, NTFS *does* support unique filenames that differ only in case. Read the KB for details.

Some of the files on the *N*X I use fall in this category. It would be nice (for me, at least) if WinSCP would copy them onto an NTFS file system as-is without me having to rename files with case-name conflicts.

In my case I'm just using Windows as a back-up repository; I'll only actually *USE* the files after copying them back to a Linux system (if needed).
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
ChuckNewman wrote:
According to Microsoft https://support.microsoft.com/en-us/kb/100625, NTFS *does* support unique filenames that differ only in case. Read the KB for details.

OK, but Windows does not support them.
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