Package com.atlassian.jira.util
Class FileSystemFileFactory
java.lang.Object
com.atlassian.jira.util.FileSystemFileFactory
- All Implemented Interfaces:
FileFactory
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemFileFactory
(JiraProperties jiraSystemProperties) Creates a new FileFactory. -
Method Summary
Modifier and TypeMethodDescriptionCreates a File object for the file with the given path.void
removeDirectory
(File directory) Removes a directory.void
removeDirectoryIfExists
(String directoryName) Removes a directory if it exists.
-
Constructor Details
-
FileSystemFileFactory
Creates a new FileFactory.
-
-
Method Details
-
getFile
Description copied from interface:FileFactory
Creates a File object for the file with the given path.- Specified by:
getFile
in interfaceFileFactory
- Parameters:
absoluteFilename
- a String containing an absolute path name- Returns:
- a new File
-
removeDirectoryIfExists
Description copied from interface:FileFactory
Removes a directory if it exists.- Specified by:
removeDirectoryIfExists
in interfaceFileFactory
- Parameters:
directoryName
- a String containing a directory path
-
removeDirectory
Description copied from interface:FileFactory
Removes a directory.- Specified by:
removeDirectory
in interfaceFileFactory
- Parameters:
directory
- a File object
-