Recently, I meet a problem when resolve file path by commons-vfs.
FileObject tmpDestFo = fsm.resolveFile("/tmp/tempfile%2flicense.xml");
tmpDestFo.copyFrom(destFo);
As the example, what I expect after the copying is a file named 'tempfile%2flicense.xml' is created under '/tmp' directory. But the result is a file named 'license.xml' created in the '/tmp/tempfile' directory.
I think it's caused by the resolveFile API which replace the character '%2f' to '/'. I'm not sure about if other special characters are processed in the same way.
Do you have some idea about the problem? I do want a file whose name include the '%2f'.
Thanks a lot.