Class Utils


  • public final class Utils
    extends Object
    Utility class.
    Author:
    Valentin Berthault
    • Method Detail

      • checkDiskSpace

        public static void checkDiskSpace​(Path dir)
                                   throws IOException
        Check that there is enough space on the disk
        Parameters:
        dir - directory to save
        Throws:
        IOException - IOException
      • unzip

        public static void unzip​(Path zipPath,
                                 Path nodeDir)
                          throws IOException
        unzip
        Parameters:
        zipPath - zip Path
        nodeDir - path to the directory where unzip
        Throws:
        IOException
      • deleteDirectory

        public static void deleteDirectory​(Path directoryToBeDeleted)
                                    throws IOException
        delete directory
        Parameters:
        directoryToBeDeleted - directory to be deleted
        Throws:
        IOException