aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 19781
    
  20

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.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rsync blank spaces problem