private IgfsEntryInfo createFileAndGetInfo(String path) throws IgniteCheckedException { IgfsPath p = path(path); IgfsEntryInfo res = mgr.create(p, null, false, 400, null, false, null, null).info(); assert res != null; assert !res.isDirectory(); return res; }
private IgfsEntryInfo mkdirsAndGetInfo(String path) throws IgniteCheckedException { IgfsPath p = path(path); mgr.mkdirs(p, IgfsImpl.DFLT_DIR_META); IgniteUuid id = mgr.fileId(p); IgfsEntryInfo info = mgr.info(id); assert info.isDirectory(); return info; }
System.out.println("f3: " + mgr.directoryListing(f3.id())); mgr.move(path("/a"), path("/a2")); mgr.move(path("/a2/b"), path("/a2/b2")); mgr.move(path("/a2/b2/f3"), path("/a2/b2/f3-2")); mgr.move(path("/a2/b2/f3-2"), path("/a2/b2/f3")); mgr.move(path("/a2/b2"), path("/a2/b")); mgr.move(path("/a2"), path("/a")); mgr.softDelete(path("/a/b/f3"), false, null); mgr.softDelete(path("/a/b"), false, null); mgr.softDelete(path("/a/f2"), false, null); assertEmpty(mgr.directoryListing(b.id())); mgr.softDelete(path("/f1"), false, null); assertEmpty(mgr.directoryListing(b.id())); mgr.softDelete(path("/a"), false, null);