[
https://issues.apache.org/jira/browse/VFS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563400#action_12563400
]
Rajiv Kumar commented on VFS-195:
---------------------------------
Mario,
I think it is a bug on windows platform and hence put it on JIRA so it can be
better tracked.
I am initializing the file system manager as follows:
DefaultFileSystemManager fsm = new DefaultFileSystemManager();
DefaultLocalFileProvider localProvider = new
DefaultLocalFileProvider();
localProvider.init();
fsm.addProvider("file", localProvider);
ZipFileProvider zipProvider = new ZipFileProvider();
zipProvider.init();
fsm.addProvider("zip", localProvider);
fsm.addExtensionMap("zip", "zip");
The syntax that you provided ("zip:file:///C:/Temp/temp.zip!/" or
"zip:file:///C:/Temp/temp.zip" ) does not work for me.
Rajiv
> Unable to get Zip file URL working on Windows machine
> -----------------------------------------------------
>
> Key: VFS-195
> URL: https://issues.apache.org/jira/browse/VFS-195
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: Rajiv Kumar
>
> Could not get the Zip file URL working on Windows machine? Tried following
> formats.
> zip:file:/C:/Temp/source/test.zip --- Invalid Absolute URI
> zip:file:/C:/Temp/source/test.zip! --- Invalid Absolute URI
> zip:file://C:/Temp/source/test.zip --- Invalid Absolute URI
> zip:file:/C:/Temp/source/test.zip! -- Invalid Absolute URI
> zip://file:/C:/Temp/source/test.zip --
> org.apache.commons.vfs.FileSystemException: Could not copy because it does
> not exist.
> zip:///C:/Temp/source/test.zip! - Could not copy because it does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.