You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Daniel <za...@gmail.com> on 2010/11/18 01:56:02 UTC

[vfs] replicateFile() method doesn't work for CD drives

I used to cheat and use getLocalFile() method for my local files,
until I leant about "File f =
file.getFileSystem().replicateFile(file,Selectors.SELECT_SELF)".
But this way doesn't work for empty CD drives. Saying it does not
exist. Is there a way for it to return a File even if it does not
exist?
For now I have fallen back to getLocalFile() when this error happens.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org