public static class FileArchive.StaleFileManager.Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static FileArchive.StaleFileManager |
getInstance(File archive)
Factory method for a StaleFileManager.
|
static void |
markDeletedArchive(Archive archive)
Creates a marker file in the archive directory - if it still
exists and contains any stale files.
|
static void |
markDeletedArchive(File archiveFile)
Creates a marker file in the archive directory - if it still
exists and contains any stale files.
|
public static void markDeletedArchive(Archive archive)
archive
- the File for the archive to markpublic static void markDeletedArchive(File archiveFile)
archive
- the File for the archive to markpublic static FileArchive.StaleFileManager getInstance(File archive) throws IOException
Callers should invoke this method only after they have finished with the FileArchive and have tried to delete it. If the directory for the archive remains then it contains one or more stale files that could not be deleted, and the factory method returns a instance that tracks the stale files. If the directory no longer exists then the delete succeeded, there are
archive
- the directory to contain the archiveIOException
Copyright © 2018. All rights reserved.