Comments (7)
The rest of the changes works as expected. I close this ticket.
Thank you for your quick response!
from rsync4j.
With commit 51f41ba, the following example code:
public class PathTest {
public static void main(String[] args) throws Exception {
String p;
p = "rsync://localhost:21234/someDir/";
System.out.println(p + "\n " + Binaries.convertPath(p));
p = "c:\\tmp\\myfile.txt";
System.out.println(p + "\n " + Binaries.convertPath(p));
p = "\\\\host\\share\\myfile.txt";
System.out.println(p + "\n " + Binaries.convertPath(p));
p = "/home/some/where/myfile.txt";
System.out.println(p + "\n " + Binaries.convertPath(p));
}
}
Now outputs this (under Windows only!):
rsync://localhost:21234/someDir/
rsync://localhost:21234/someDir/
c:\tmp\myfile.txt
/cygdrive/c/tmp/myfile.txt
\\host\share\myfile.txt
\\host\share\myfile.txt
/home/some/where/myfile.txt
/home/some/where/myfile.txt
Will push out a bugfix release shortly.
from rsync4j.
Release 3.2.7-4 is now available:
https://github.com/fracpete/rsync4j/releases/tag/rsync4j-pom-3.2.7-4
May still take a few hours before artifacts have been sync'ed with Maven Central.
Please give it a go and let me know how you get on. If the problem is solved, then please close this issue. Otherwise, please report back.
from rsync4j.
Sorry, I closed this too eary.
from rsync4j.
Just a quick question: I guess, we still need to set special permissions when we use rsync under windows? Or is this handled by your library?
from rsync4j.
Please clarify what you mean by special permissions.
from rsync4j.
When I transfer a file with rsync from Unix to Windows, I have to add the command line arguments
"--perms --chmod=a=rwx,Da+x". Otherwise I cannot access the file on the windows filesystem. This has nothing to do with your library per se, I just thought that it would be nice to be able to use your library on both windows and unix systems without having to change my code.
-> I do not know if this can be done in your library as I don't fully understand why this --perms and --chmod is necessary on the windows OS. I just got the solution from stackoverflow and it works. (https://stackoverflow.com/questions/5798807/rsync-on-windows-wrong-permissions-for-created-directories)
from rsync4j.
Related Issues (20)
- Version of processoutput4j HOT 2
- rsync 3.2.7 HOT 2
- rsync4j in Apache Karaf HOT 2
- Update OpenSSH to 9.0 HOT 1
- Run rsync command using runtime in java HOT 2
- Apostrophe in username - Rsync fails HOT 2
- Spaces in the users username on a Windows machine HOT 4
- OpenSSH 9.1 HOT 1
- Make rsync path customizable HOT 8
- add support to parallel transfer HOT 1
- How to Use Rsync4j with Non-Standard Port HOT 17
- OpenSSH 9.4 HOT 1
- Is rsync copy only updated block of a file OR the whole file when file is exist on destination ? (Java jar) HOT 3
- Maven Release HOT 3
- How to detect whether the rsync server can connect? HOT 10
- Can I use the MkPath command to create the directory of the rsync receiver? HOT 5
- Upgrade to OpenSSH 9.6 HOT 1
- OpenSSH 9.7 support HOT 1
- add support for rsync 3.3.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsync4j.