/** * Creates the parent directory of this resource, including any necessary * but nonexistent parent directories. * * @throws FileSystemException */ public synchronized void makeParentDirs() throws FileSystemException { String parentDir = getParentDir(); if (!fs.exists(parentDir)) { fs.createFolder(parentDir); } }
/** * {@inheritDoc} */ public void createFolder(String folderPath) throws FileSystemException { fsBase.createFolder(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public boolean isFile(String path) throws FileSystemException { return fsBase.isFile(buildBasePath(path)); }
/** * {@inheritDoc} */ public boolean exists(String path) throws FileSystemException { return fsBase.exists(buildBasePath(path)); }
/** * {@inheritDoc} */ public InputStream getInputStream(String filePath) throws FileSystemException { return fsBase.getInputStream(buildBasePath(filePath)); }
/** * {@inheritDoc} */ public void deleteFolder(String folderPath) throws FileSystemException { fsBase.deleteFolder(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public String[] listFiles(String folderPath) throws FileSystemException { return fsBase.listFiles(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public OutputStream getOutputStream(String filePath) throws FileSystemException { return fsBase.getOutputStream(buildBasePath(filePath)); }
/** * {@inheritDoc} */ public String[] listFolders(String folderPath) throws FileSystemException { return fsBase.listFolders(buildBasePath(folderPath)); } }
/** * {@inheritDoc} */ public boolean isFolder(String path) throws FileSystemException { return fsBase.isFolder(buildBasePath(path)); }
/** * {@inheritDoc} */ public void deleteFile(String filePath) throws FileSystemException { fsBase.deleteFile(buildBasePath(filePath)); }
/** * {@inheritDoc} */ public String[] list(String folderPath) throws FileSystemException { return fsBase.list(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public boolean hasChildren(String path) throws FileSystemException { return fsBase.hasChildren(buildBasePath(path)); }
/** * Creates the parent directory of this resource, including any necessary * but nonexistent parent directories. * * @throws FileSystemException */ public synchronized void makeParentDirs() throws FileSystemException { String parentDir = getParentDir(); if (!fs.exists(parentDir)) { fs.createFolder(parentDir); } }
/** * {@inheritDoc} */ public boolean exists(String path) throws FileSystemException { return fsBase.exists(buildBasePath(path)); }
/** * {@inheritDoc} */ public void createFolder(String folderPath) throws FileSystemException { fsBase.createFolder(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public boolean isFile(String path) throws FileSystemException { return fsBase.isFile(buildBasePath(path)); }
/** * {@inheritDoc} */ public void deleteFolder(String folderPath) throws FileSystemException { fsBase.deleteFolder(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public String[] listFiles(String folderPath) throws FileSystemException { return fsBase.listFiles(buildBasePath(folderPath)); }
/** * {@inheritDoc} */ public boolean isFolder(String path) throws FileSystemException { return fsBase.isFolder(buildBasePath(path)); }