File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "case sensitiveness on samba share" Watch "case sensitiveness on samba share" New topic

case sensitiveness on samba share

keith moon

Joined: Dec 11, 2008
Posts: 3

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

Joined: Oct 29, 2001
Posts: 9189

*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:
subject: case sensitiveness on samba share
It's not a secret anymore!