/** * {@inheritDoc} */ public boolean isFile(String path) throws FileSystemException { return fsBase.isFile(buildBasePath(path)); }
/** * {@inheritDoc} */ public boolean isFile(String path) throws FileSystemException { return fsBase.isFile(buildBasePath(path)); }
/** * {@inheritDoc} */ public boolean isFile(String path) throws FileSystemException { return fsBase.isFile(buildBasePath(path)); }
if (!itemStateFS.isFile(propFilePath)) { throw new NoSuchItemStateException(propFilePath);
if (!itemStateFS.isFile(nodeFilePath)) { throw new NoSuchItemStateException(nodeFilePath);
if (!itemStateFS.isFile(propFilePath)) { throw new NoSuchItemStateException(propFilePath);
if (!itemStateFS.isFile(nodeFilePath)) { throw new NoSuchItemStateException(nodeFilePath);
if (!itemStateFS.isFile(refsFilePath)) { throw new NoSuchItemStateException(id.toString());
if (!itemStateFS.isFile(refsFilePath)) { throw new NoSuchItemStateException(id.toString());
String refsFilePath = buildNodeReferencesFilePath(id); try { if (!itemStateFS.isFile(refsFilePath)) { throw new NoSuchItemStateException(id.toString());
String refsFilePath = buildNodeReferencesFilePath(id); try { if (!itemStateFS.isFile(refsFilePath)) { throw new NoSuchItemStateException(id.toString());
if (!itemStateFS.isFile(propFilePath)) { throw new NoSuchItemStateException(id.toString());
if (!itemStateFS.isFile(propFilePath)) { throw new NoSuchItemStateException(id.toString());
if (!itemStateFS.isFile(nodeFilePath)) { throw new NoSuchItemStateException(id.toString());
if (!itemStateFS.isFile(nodeFilePath)) { throw new NoSuchItemStateException(id.toString());
assertFalse(fs.isFile("/")); assertEquals(0, fs.list("/").length); assertTrue(fs.exists("/folder")); assertTrue(fs.isFolder("/folder")); assertFalse(fs.isFile("/folder")); assertEquals(0, fs.list("/folder").length); list = fs.list("/"); assertTrue(fs.exists("/folder/file")); assertFalse(fs.isFolder("/folder/file")); assertTrue(fs.isFile("/folder/file")); list = fs.list("/folder"); assertEquals(1, list.length); assertTrue(fs.exists("/folder2/subfolder")); assertTrue(fs.isFolder("/folder2/subfolder")); assertFalse(fs.isFile("/folder2/subfolder")); assertEquals(0, fs.list("/folder2/subfolder").length); list = fs.list("/folder2"); assertFalse(fs.exists("/folder2/subfolder")); assertFalse(fs.isFolder("/folder2/subfolder")); assertFalse(fs.isFile("/folder2/subfolder")); list = fs.list("/folder2"); assertEquals(1, list.length); assertFalse(fs.exists("/folder2")); assertFalse(fs.isFolder("/folder2"));