Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

rsync blank spaces problem  RSS feed

 
e. asd
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20968
84
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
e. asd
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rob, but I've just solved it doing



without any escape character.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!