List of usage examples for org.apache.commons.vfs2 Capability SET_LAST_MODIFIED_FILE
Capability SET_LAST_MODIFIED_FILE
To view the source code for org.apache.commons.vfs2 Capability SET_LAST_MODIFIED_FILE.
Click Source Link
From source file:net.sourceforge.fullsync.fs.connection.CommonsVfsConnection.java
public CommonsVfsConnection(final ConnectionDescription desc, final FileSystemAuthProvider fsAuthProvider) throws FileSystemException { try {//from w ww. java 2s . c o m this.desc = desc; FileSystemOptions options = new FileSystemOptions(); if (null != fsAuthProvider) { fsAuthProvider.authSetup(desc, options); } int port = desc.getPort().orElse(Integer.valueOf(1)).intValue(); String host = desc.getHost().orElse(null); URI url = new URI(desc.getScheme(), null, host, port, desc.getPath(), null, null); base = VFS.getManager().resolveFile(url.toString(), options); root = new AbstractFile(this, ".", null, true, base.exists()); //$NON-NLS-1$ canSetLastModifiedFile = base.getFileSystem().hasCapability(Capability.SET_LAST_MODIFIED_FILE); canSetLastModifiedFolder = base.getFileSystem().hasCapability(Capability.SET_LAST_MODIFIED_FOLDER); } catch (org.apache.commons.vfs2.FileSystemException | URISyntaxException e) { throw new FileSystemException(e); } }