&& !file.getName().getURI().equals(url)) fsManager.getFilesCache().removeFile( file.getFileSystem(), file.getName());
private FilesCache getCache() { FilesCache files; files = getContext().getFileSystemManager().getFilesCache(); if (files == null) { throw new RuntimeException(Messages.getString("vfs.provider/files-cache-missing.error")); } return files; }
private FilesCache getCache() { FilesCache files; files = getContext().getFileSystemManager().getFilesCache(); if (files == null) { throw new RuntimeException(Messages.getString("vfs.provider/files-cache-missing.error")); } return files; }
private FilesCache getCache() { FilesCache files; files = getContext().getFileSystemManager().getFilesCache(); if (files == null) { throw new RuntimeException(Messages.getString("vfs.provider/files-cache-missing.error")); } return files; }
private FilesCache getCache() { FilesCache files; files = getContext().getFileSystemManager().getFilesCache(); if (files == null) { throw new RuntimeException(Messages.getString("vfs.provider/files-cache-missing.error")); } return files; }
@SneakyThrows private static File copyToDir(FileObject jarredFile, File destination, boolean retryIfImaginary) { switch (jarredFile.getType()) { case FILE: return copyFileToDir(jarredFile, destination); case FOLDER: return copyDirToDir(jarredFile, destination); case IMAGINARY: if (retryIfImaginary) { log.debug("Imaginary file found, retrying extraction"); VFS.getManager().getFilesCache().removeFile(jarredFile.getFileSystem(), jarredFile.getName()); FileObject newJarredFile = VFS.getManager().resolveFile(jarredFile.getName().getURI()); return copyToDir(newJarredFile, destination, false); } else { log.debug("Imaginary file found after retry, abandoning retry"); } default: throw new IllegalStateException("File Type not supported: " + jarredFile.getType()); } }
final boolean useCache = null != getContext().getFileSystemManager().getFilesCache(); FileObject file; if (useCache) {
final boolean useCache = null != getContext().getFileSystemManager().getFilesCache(); FileObject file; if (useCache) {
final boolean useCache = null != getContext().getFileSystemManager().getFilesCache(); FileObject file; if (useCache) {
private void testResloveFolderSlash(final String uri, final boolean followRedirect) throws FileSystemException { VFS.getManager().getFilesCache().close(); final FileSystemOptions opts = new FileSystemOptions(); HttpFileSystemConfigBuilder.getInstance().setFollowRedirect(opts, followRedirect); final FileObject file = VFS.getManager().resolveFile(uri, opts); try { checkReadTestsFolder(file); } catch (final FileNotFolderException e) { // Expected: VFS HTTP does not support listing children yet. } }
private void testResloveFolderSlash(final String uri, final boolean followRedirect) throws FileSystemException { VFS.getManager().getFilesCache().close(); final FileSystemOptions opts = new FileSystemOptions(); HttpFileSystemConfigBuilder.getInstance().setFollowRedirect(opts, followRedirect); try (final FileObject file = VFS.getManager().resolveFile(uri, opts)) { checkReadTestsFolder(file); } catch (final FileNotFolderException e) { // Expected: VFS HTTP does not support listing children yet. } }
private void testResloveFolderSlash(final String uri, final boolean followRedirect) throws FileSystemException { VFS.getManager().getFilesCache().close(); final FileSystemOptions opts = new FileSystemOptions(); Http4FileSystemConfigBuilder.getInstance().setFollowRedirect(opts, followRedirect); final FileObject file = VFS.getManager().resolveFile(uri, opts); try { checkReadTestsFolder(file); } catch (final FileNotFolderException e) { // Expected: VFS HTTP does not support listing children yet. } }
fsManager.getFilesCache().clear(fileObject.getFileSystem()); if (!fileObject.exists()) { if (createDirectory) {