Class Directories

java.lang.Object
net.ME1312.Galaxi.Library.Directories

public final class Directories extends Object
  • Method Details

    • copy

      public static void copy(File from, File to)
      Copy a Directory
      Parameters:
      from - Source
      to - Destination
    • search

      public static List<String> search(File folder)
      Search a Directory
      Parameters:
      folder - Location
      Returns:
      List of all found file paths
    • zip

      public static void zip(File folder, OutputStream zip)
      Zip a Directory
      Parameters:
      folder - Location
      zip - Zip Data Stream
    • unzip

      public static void unzip(InputStream zip, File folder)
      Unzip a Directory
      Parameters:
      zip - Zip Data Stream
      folder - Parent Location
    • delete

      public static void delete(File folder)
      Delete Directory
      Parameters:
      folder - Location