public class FileSystemFileFactory extends Object implements FileFactory
Constructor and Description |
---|
FileSystemFileFactory(JiraProperties jiraSystemProperties)
Creates a new FileFactory.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile(String absoluteFilename)
Creates 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.
|
public FileSystemFileFactory(JiraProperties jiraSystemProperties)
public File getFile(String absoluteFilename)
FileFactory
getFile
in interface FileFactory
absoluteFilename
- a String containing an absolute path namepublic void removeDirectoryIfExists(String directoryName)
FileFactory
removeDirectoryIfExists
in interface FileFactory
directoryName
- a String containing a directory pathpublic void removeDirectory(File directory)
FileFactory
removeDirectory
in interface FileFactory
directory
- a File objectCopyright © 2002-2024 Atlassian. All Rights Reserved.