Package com.compomics.util.io.file
Class FileSystemAccessor
java.lang.Object
com.compomics.util.io.file.FileSystemAccessor
public class FileSystemAccessor extends Object
This class serves as a fast OS independent access point to the file system.
- Author:
- Kenny Helsens
-
Constructor Summary
Constructors Constructor Description FileSystemAccessor()
Empty constructor. -
Method Summary
Modifier and Type Method Description static File
getHomeFolder()
Returns the user home folder.static OperatingSystemEnum
getOperatingSystem()
Get the operating system.static String
getPathOfClass(String aClassname)
Returns the absolute path of the underlying file system of the given class.
-
Constructor Details
-
FileSystemAccessor
public FileSystemAccessor()Empty constructor.
-
-
Method Details
-
getOperatingSystem
Get the operating system.- Returns:
- This method returns the underlying operating system as a OperatingSystemEnum instance.
-
getHomeFolder
Returns the user home folder.- Returns:
- the user home folder
-
getPathOfClass
Returns the absolute path of the underlying file system of the given class.- Parameters:
aClassname
- The classname of which the parent folder needs to be returned (e.g.: "FileSystemAccessor.class")- Returns:
- The full path to the parent classname. (e.g.: /home/user/java/compomics/utilities/)
-