This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes I/O and Streams and the fly likes rsync blank spaces problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "rsync blank spaces problem" Watch "rsync blank spaces problem" New topic
Author

rsync blank spaces problem

e. asd
Greenhorn

Joined: Sep 09, 2010
Posts: 2
hi all, hope this is the right section.

I'm creating my own desktop application that works with rsync.

I'm trying to list directories content, but i'm not able to do this with path that contains blank spaces. To list directories with spaces i've tried:



but none of these works. I'm trying this on a remote host on linux. I have to use rsync, can't list files and directories with java class "File", 'cos i got also to list file from a server which requires login.

Any suggestions?

Thanks in advance
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19679
    
  18

e. asd wrote:I have to use rsync, can't list files and directories with java class "File", 'cos i got also to list file from a server which requires login.

Any suggestions?

If the login is the main concern you may want to check out JCIFS. It's a system similar to java.io but has support for different file systems, and authentication.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
e. asd
Greenhorn

Joined: Sep 09, 2010
Posts: 2
Thanks Rob, but I've just solved it doing



without any escape character.


 
Consider Paul's rocket mass heater.
 
subject: rsync blank spaces problem