Package com.compomics.util.io.file
Class FileSystemAccessor
java.lang.Object
com.compomics.util.io.file.FileSystemAccessor
This class serves as a fast OS independent access point to the file system.
- Author:
- Kenny Helsens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileReturns the user home folder.static OperatingSystemEnumGet the operating system.static StringgetPathOfClass(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/)
-