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.voidremoveDirectory(File directory) Removes a directory.voidremoveDirectoryIfExists(String directoryName) Removes a directory if it exists.
-
Constructor Details
-
FileSystemFileFactory
Creates a new FileFactory.
-
-
Method Details
-
getFile
Description copied from interface:FileFactoryCreates a File object for the file with the given path.- Specified by:
getFilein interfaceFileFactory- Parameters:
absoluteFilename- a String containing an absolute path name- Returns:
- a new File
-
removeDirectoryIfExists
Description copied from interface:FileFactoryRemoves a directory if it exists.- Specified by:
removeDirectoryIfExistsin interfaceFileFactory- Parameters:
directoryName- a String containing a directory path
-
removeDirectory
Description copied from interface:FileFactoryRemoves a directory.- Specified by:
removeDirectoryin interfaceFileFactory- Parameters:
directory- a File object
-