commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <>
Subject [io] Exact meaning of getPath, esp. on UNIX?
Date Sat, 27 Nov 2004 16:57:04 GMT
getPath is currently coded so that:
  "/a/b/c.txt"  --> "/a/b"
this is of course correct.

However, it is also coded to do:
  "/a/b/c"  --> "/a/b"
which seems a little odd (for me with a windows background). ie. the method
treats 'c' as a file not a folder.

- Are there lots of filenames on unix that have no dot extension?
- Do we need to have two methods to cope with this situation?
- Or should we change the method so that it only strips the end if it finds
a dot after the last separator?

The question affects various methods in FilenameUtils.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message