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 Details

  • Method Details

    • getOperatingSystem

      public static OperatingSystemEnum getOperatingSystem()
      Get the operating system.
      Returns:
      This method returns the underlying operating system as a OperatingSystemEnum instance.
    • getHomeFolder

      public static File getHomeFolder()
      Returns the user home folder.
      Returns:
      the user home folder
    • getPathOfClass

      public static String getPathOfClass​(String aClassname)
      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/)