public class FileSystemService extends Object
| Constructor and Description |
|---|
FileSystemService() |
FileSystemService(File baseDir) |
public FileSystemService()
public FileSystemService(File baseDir)
public FileProps getFileProps(String baseUrl, String path) throws IOException
IOExceptionpublic Set<FileProps> list(String baseUrl, String path) throws IOException
IOExceptionpublic Set<FileProps> listAll(String baseUrl, String path) throws IOException
IOExceptionpublic FileContent getFileContent(String baseUrl, String path) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic FileProps create(String baseUrl, @RequestBody String path) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic FileProps createFolder(String baseUrl, @RequestBody String path) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic void delete(String path) throws IOException
IOExceptionpublic void deleteDirectory(String path) throws IOException
IOExceptionpublic FileProps renameFile(String baseUrl, FileDTO fileDTO) throws IOException
IOExceptionpublic FileContent save(String baseUrl, @RequestBody FileContent fileContent) throws IOException
IOExceptionpublic Set<FileProps> search(String baseUrl, String path, @RequestParam(value="q") String query) throws IOException
IOExceptionpublic boolean dirExists(String path)
protected void maybeAutoFormat(FileContent fileContent)
public org.springframework.core.io.FileSystemResource get(String path) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionprotected FileContent extractFileContent(String baseUrl, File file) throws IOException
IOExceptionprotected File getFile(String path) throws IOException
IOExceptionprotected FileProps extractFileProps(String baseUrl, File file) throws IOException
IOExceptionprotected FileProps extractFileProps2(String baseUrl, File file) throws IOException
IOExceptionpublic void recursiveDelete(File file) throws IOException
IOExceptionpublic Set<FileProps> searchContent(String baseUrl, String query) throws IOException
IOExceptionpublic File getBaseDir()
public void setBaseDir(File baseDir)
Copyright © 2019 VILT Group. All rights reserved.