@Override public Object call() throws Exception { igfs.delete(path("/ef"), false); return null; } }, IgfsDirectoryNotEmptyException.class, null);
@Override public Object call() throws Exception { for (int cur = cnt.incrementAndGet(); cur < max; cur = cnt.incrementAndGet()) igfs.delete(path(cur), true); return null; } }, threads, "grid-test-delete-directories");
/** {@inheritDoc} */ @Override public void handleFile(String strPath) throws Exception { IgfsPath path = new IgfsPath(strPath); fs.delete(path, false); }
/** {@inheritDoc} */ @Override public void postHandleDir(String strPath) throws Exception { IgfsPath path = new IgfsPath(strPath); fs.delete(path, false); } }
igfs.delete(path("/A1/B1/C1"), false); assertNull(igfs.info(path("/A1/B1/C1"))); igfs.delete(path("/A1/B1/C2"), false); assertNull(igfs.info(path("/A1/B1/C2"))); igfs.delete(path("/A1/B1/C3"), false); assertNull(igfs.info(path("/A1/B1/C3"))); igfs.delete(path("/A2/B2"), true); assertNull(igfs.info(path("/A2/B2"))); igfs.delete(path("/"), true); igfs.delete(path("/"), false); igfs.delete(path("/A"), true); igfs.delete(path("/A1"), true); igfs.delete(path("/A2"), true); igfs.delete(path("/"), false); igfs.delete(path("/"), true);
/** @throws Exception If failed. */ @Test public void testCreate() throws Exception { IgfsPath path = path("/file"); try (IgfsOutputStream os = igfs.create(path, false)) { assert os != null; IgfsFileImpl info = (IgfsFileImpl)igfs.info(path); for (int i = 0; i < nodesCount(); i++) { IgfsEntryInfo fileInfo = (IgfsEntryInfo)grid(i).cachex(metaCacheName).localPeek(info.fileId(), null); assertNotNull(fileInfo); assertNotNull(fileInfo.listing()); } } finally { igfs.delete(path("/"), true); } }
fs.delete(f, true); assertNull(fs.info(f));
fs.delete(path, true);
assertNotNull(dataCache.get(dataMgr.blockKey(i, info))); igfs.delete(path, true);