This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 8839
    
    7

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: case sensitiveness on samba share
 
Similar Threads
Problem with Exceptions
Hi...how to print to a file...
Linux Windows co-exist : How to
Task to parse a remote log file
downloading files