• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

rsync blank spaces problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Rob, but I've just solved it doing



without any escape character.


reply
    Bookmark Topic Watch Topic
  • New Topic