Class FileUtils

java.lang.Object
org.aksw.jena_sparql_api.conjure.utils.FileUtils

public class FileUtils extends Object
  • Constructor Details

    • FileUtils

      public FileUtils()
  • Method Details

    • size

      public static long size(Path path)
      Attempts to calculate the size of a file or directory.

      Since the operation is non-atomic, the returned value may be inaccurate. However, this method is quick and does its best. Source: https://stackoverflow.com/questions/2149785/get-size-of-folder-or-file/19877372#19877372

    • allocateTmpFile

      public static Path allocateTmpFile(Path tgt)