public void run() { LOG.fine("refreshAll - started"); //NOI18N refreshFor(File.listRoots()); try { getConfigRoot().getFileSystem().refresh(true); } catch (FileStateInvalidException ex) { Exceptions.printStackTrace(ex); } finally { LOG.fine("refreshAll - finished"); //NOI18N synchronized (REFRESH_RP) { refreshTask = null; } } } });
folderFo.getFileSystem().refresh(false); retval = FileUtil.createData(folderFo,relativePath);
folderFo.getFileSystem().refresh(false); retval = FileUtil.createFolder(folderFo,relativePath);
private static void refreshFileSystem(final File dir) throws FileStateInvalidException { File rootF = dir; while (rootF.getParentFile() != null) { rootF = rootF.getParentFile(); } FileObject dirFO = FileUtil.toFileObject(rootF); assert dirFO != null : "At least disk roots must be mounted! " + rootF; // NOI18N dirFO.getFileSystem().refresh(false); }
public FileObject getServletFileObject() { FileObject root = getServletJavaRoot(); if (root == null) { return null; } File servlet = getServletFile(); if ((servlet == null) || !servlet.exists()) { return null; } FileObject fo = FileUtil.toFileObject(FileUtil.normalizeFile(servlet)); if (fo != null) { return fo; } try { root.getFileSystem().refresh(false); return root.getFileObject(getServletResourceName()); } catch (FileStateInvalidException e) { Logger.getLogger("global").log(Level.INFO, null, e); } return null; }
Exceptions.printStackTrace(ex); project.getProjectDirectory().getFileSystem().refresh(true);
project.getProjectDirectory().getFileSystem().refresh(true); } catch (IOException ioe) { ErrorManager.getDefault().notify(ioe);
dirFO.getFileSystem().refresh(true);