Interface ListFS
- All Superinterfaces:
VirtualFileSystem
- All Known Implementing Classes:
VFolderVFS
Created by vpc on 1/1/17.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrRename(String name, VFile file, VFileNameGenerator nameGenerator) convenient way to add new file to the folder even if the file name already existsvoidMethods inherited from interface VirtualFileSystem
copyFrom, copyTo, copyTo, copyTo, copyToNativeTempFile, createTempFile, delete, deleteAll, exists, filter, filter, get, get, getACL, getBase, getFileType, getId, getInputStream, getOutputStream, getOutputStream, getParentFile, getRoots, getSecurityManager, isDirectory, isFile, isParentOf, lastModified, length, listFiles, listFiles, mkdir, mkdirs, probeContentType, readBytes, renameTo, subfs, subfs, write, writeBytes
-
Method Details
-
addOrRename
convenient way to add new file to the folder even if the file name already exists- Parameters:
name- preferred file namefile- file or directory to add to the listnameGenerator- Name Generator used to generate new name. If null, default one will be used- Returns:
- new Name
-
add
- Parameters:
name- file namefile- file to add- Throws:
IllegalArgumentException- if the file already exists
-
remove
- Parameters:
name-- Throws:
NoSuchElementException- if the name does not exist
-