File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes case sensitiveness on samba share 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 "case sensitiveness on samba share" Watch "case sensitiveness on samba share" New topic
Author

case sensitiveness on samba share

keith moon
Greenhorn

Joined: Dec 11, 2008
Posts: 3
hi,

does anyone know how to solve this case sensitive/insensitive filename problem?
I only known a case insensitive filename for example "myfile.txt". Actually the file is stored as "MYFILE.txt".

On windows I can open it regardless of how it is actually stored and with the getCanocialPath method I get the real filename.

Trying this on Linux with an Samba share, does also open the file, but I don't get the real filename.

The linux console does show the filename "MYFILE.txt" so I don't think it's a samba problem. Is there a way to get the real filename?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

*nix operating systems including Linux are case-sensitive. That is, the file names "myfile.txt" and "MYFILE.txt" would refer to two different files.


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: case sensitiveness on samba share