fast-data-transfer / fdt

FDT is an Application for Efficient Data Transfers which is capable of reading and writing at disk speed over wide area networks (with standard TCP). It is written in Java, runs an all major platforms and it is easy to use. FDT is based on an asynchronous, flexible multithreaded system and is using the capabilities of the Java NIO libraries.
https://fast-data-transfer.github.io/
Apache License 2.0
200 stars 45 forks source link

Windows path resolving issues #34

Closed ddwreczycki closed 5 years ago

ddwreczycki commented 5 years ago

Hello there, I'm currently trying to figure out how to use Fast Data Transfer and I did encounter an error which prevents me from using library. I will provide an exact command I'm executing with no luck.

java -jar fdt-0.26.1-SNAPSHOT.jar -pull -r -c 192.168.1.04 -d C:/Users/dev/Desktop/ /Users/danny/NetBeansProjects/fdt/target/fdt.jar — from Mac to Windows and its working perfectly fine. File is being transferred.

But in reverse order, java -jar fdt-0.26.1-SNAPSHOT.jar -pull -r -c 192.168.105 -d /Users/danny/desktop/ C:/Users/dev/Desktop/fdt.jar — from Windows to Mac FDT is always prompting an error.

Caused by: java.lang.IllegalArgumentException: Illegal syntax! You can use either Client/Server (-c/-d) syntax, either SCP syntax.

I'm doing something wrong? Is there syntax to format windows path to be accepted as last parameter?

I will appreciate any informations regarding my issue.

ddwreczycki commented 5 years ago

Okey I made quick dive into code and spotted an issue. Its line 486 in Utils.java. There is check if path contains ':' and then if (File.separatorChar == '\') {// "Windowns" baby!. I think checking File.separatorChar is not necessary there since its preventing from parsing windows formatted path in unix like system.

xpan1 commented 5 years ago

Hey, how did you solve the problem eventually? I have the same problem....

ddwreczycki commented 5 years ago

Hey, how did you solve the problem eventually? I have the same problem....

If I remeber correctly I just removed mentioned if statment and builded project myself.

xpan1 commented 5 years ago

So you mean you edited the fdt directly?