Re: [Samba] Samba Share Mounts with Java
- Date: Thu, 27 Mar 2008 15:37:47 +0100
- From: Udo Rader <udo.rader@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] Samba Share Mounts with Java
On Thu, 2008-03-27 at 08:05 -0600, josgreen@xxxxxxxxxxxxxx wrote: > Hello, > > I am developing a Java application that requires me to read from > and write to a samba share. When developing in a windows environment > this was not a problem. I mounted the share as "M:/", built a path to > a file, checked if the file exists using the Java function > file.exists(), and went on my merry way. Now I am developing in a > Linux environment(SuSE 10). I mount the samba share to a folder and > when I build the path it will find and display the image, however the > check in Java(file.exists()) does not function properly. I ALWAYS get > a return value of false. Any help with this issue would be > appreciated. Thanks!!! please show the contents of file.getAbsolutePath() resp. file.getRelativePath() and how you mounted the share (mount options). What I could think of are two things: 1. upper/lowercasing problem ------- eg. when you told samba to ignore the case, but (maybe) Java doesn't handle it correctly when using file.exists() 2. wrong path separators ------- What kind of path separators do you use (backslash vs. forwardslash)? -- Udo Rader bestsolution.at EDV Systemhaus GmbH http://www.bestsolution.at
Attachment:
signature.asc
Description: This is a digitally signed message part
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
- References:
- [Samba] Samba Share Mounts with Java
- From: josgreen
- [Samba] Samba Share Mounts with Java
- Prev by Date: [Samba] Samba Share Mounts with Java
- Next by Date: RE: [Samba] question about login connections in XP vs Samba server
- Previous by thread: [Samba] Samba Share Mounts with Java
- Next by thread: Re: [Samba] Samba Share Mounts with Java
- Index(es):