public class FileGroup extends Object
| Constructor and Description |
|---|
FileGroup(File master) |
FileGroup(File root,
File master) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
List<Attachment> |
getAttachments() |
File |
getMaster() |
File |
getRoot() |
void |
move(File targetDir,
String template,
IStringEvaluator resolver,
boolean deleteSource,
boolean deleteSubdirectories,
boolean keepLastModified,
boolean collisionDetect)
Move the file group to the destination directory.
|
public FileGroup(File master)
public void delete()
throws IOException
IOExceptionpublic List<Attachment> getAttachments()
public File getMaster()
public File getRoot()
public void move(File targetDir, String template, IStringEvaluator resolver, boolean deleteSource, boolean deleteSubdirectories, boolean keepLastModified, boolean collisionDetect) throws IOException
FileTools.Lock is acquired on the master before moving.
A collision detection is performed before moving - in case of collision,
the move fails with a CollisionException before any file
operation takes place.targetDir - The directory to transfer the group intotemplate - Use this template to create a new filename in targetDir, based
on source fileresolver - The resolver used for expanding the templatedeleteSource - if true, source is deleted after movedeleteSubdirectories - if true, empty source directories are deleted after movekeepLastModified - if true, destination files get the same timestamp as sourcescollisionDetect - if true, destination is checked for collision before moveIOExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.