Anyway to get the chars that are not valid in filenames
Martin Buchholz
martinrb at google.com
Wed Jul 29 08:23:19 PDT 2009
On Tue, Jul 28, 2009 at 16:12, Paulo Levi<i30817 at gmail.com> wrote:
> In a platform independent manner of course.
> I sometimes have to convert strings into filenames (and it is
> important to users to read them yes) and fall afoul of this
> MSDN Path..::.GetInvalidFileNameChars Method seems like it would work
> as a windows binding. Anyway in the jdk (1.6) to do this?
> (and it really should be in the Paths api too).
In the general case, a filesystem could use arbitrary rules
for which sequence of characters is a valid file name.
The ScrabbleFileSystem might require that every file name
is a word from the official Scrabble (TM) dictionary.
Martin
More information about the nio-discuss
mailing list