About FileSystems write preconditions

Paulo Levi i30817 at gmail.com
Tue Dec 27 13:44:39 PST 2011


I don't know if this was taken into account in the design (excuses if it
has, and i just missed it) , but all filesystems have non portable filename
restrictions, eg: not > 256 length, forbidden characters etc. I was just
wondering if there was a way to get these preconditions so i can derive a
(likely) valid filename automatically.

The reason is that the input is often not user or native filesystem
supplied (though i probably can make him do those adjustments himself by
showing a file chooser in those cases by detecting the failure early).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20111227/619818d7/attachment.html 


More information about the nio-discuss mailing list