public class

FileSystemFileFactory

extends Object
implements FileFactory
java.lang.Object
   ↳ com.atlassian.jira.util.FileSystemFileFactory

Summary

Public Constructors
FileSystemFileFactory(JiraProperties jiraSystemProperties)
Creates a new FileFactory.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.FileFactory

Public Constructors

public FileSystemFileFactory (JiraProperties jiraSystemProperties)

Creates a new FileFactory.

Public Methods

public File getFile (String absoluteFilename)

Creates a File object for the file with the given path.

Parameters
absoluteFilename a String containing an absolute path name
Returns
  • a new File

public void removeDirectory (File directory)

Removes a directory.

Parameters
directory a File object

public void removeDirectoryIfExists (String directoryName)

Removes a directory if it exists.

Parameters
directoryName a String containing a directory path