@Singleton public class FileSystemHelper extends Object
Constructor and Description |
---|
FileSystemHelper(MagnoliaConfigurationProperties magnoliaConfigurationProperties) |
Modifier and Type | Method and Description |
---|---|
String |
getAbsoluteFileSystemPath(String path)
Gets absolute filesystem path, adds application root if path is not absolute.
|
File |
getAppRootDir()
Gets the root directory for the magnolia web application.
|
File |
getTempDirectory()
Gets the temporary directory set in magnolia properties.
|
String |
getTokenizedConfigFile(String path)
Try to get the configuration file and replace tokens.
|
@Inject public FileSystemHelper(MagnoliaConfigurationProperties magnoliaConfigurationProperties)
public File getTempDirectory()
MagnoliaConfigurationProperties.MAGNOLIA_UPLOAD_TMPDIR
public File getAppRootDir()
public String getAbsoluteFileSystemPath(String path)
public String getTokenizedConfigFile(String path) throws IOException
IOException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.