The only way to copy files to a network share is via the Synchronize Directories function, because in that case the path is not modified by TC.
Steps to reproduce:
- select any file
- press F5
- enter a path like: \\Server\Share
- press Enter
- the copy dialog shows the destination path as: UNC\Server\Share
- copy fails using any copy method (standard copy method in this case)
This is the case since at least TC version 6.0
Here is a Wine debug log showing the sequence of system calls:
Code: Select all
0028:Call KERNEL32.CopyFileExW(0187c8e4 L"D:\\localfile",0187c0e4 L"UNC\\Server\\Share\\localfile",00697600,018753a0,018753ec,00000009) ret=006978ad
0028:Ret KERNEL32.CopyFileExW() retval=00000000 ret=006978ad
0028:Call KERNEL32.GetLastError() ret=0069890f
0028:Ret KERNEL32.GetLastError() retval=00000003 ret=0069890f
Now watch what happens while copying the same file using the Synchronize Directories function:
Code: Select all
0031:Call KERNEL32.CopyFileExW(0033660c L"D:\\localfile",00335e0c L"\\\\Server\\Share\\localfile",00697600,0033217c,003321c8,00000009) ret=006978ad
0031:Ret KERNEL32.CopyFileExW() retval=00000001 ret=006978ad
The same issue occurs when copying whole directories. TC is unable to create the destination directories during normal copy, probably because of the same reason. Using Synchronize Directories works as expected.
Can this issue be fixed so that TC is fully usable under Wine?
Thank you!