Skip to content

V1.1-beta

Choose a tag to compare

@Sp0k Sp0k released this 26 Jul 20:58
· 2 commits to main since this release

V1.1-beta brings new copy methods for directory and file managers.

To copy a file, you can use the copyFile() method. This method takes in a
String src and a String dest to know what file to copy where.

import GSLib.Utilities.FileManager;

public class Example {
  void main() {
    String src = "path/to/original/file";
    String dest = "path/to/copy/destination";
    FileManager.copyFile(src, dest);
  }
}

To copy a directory, you can use the copyDirectory() method. This method takes in a
String src and a String dest to know what file to copy where.

import GSLib.Utilities.DirectoryManager;

public class Example {
  void main() {
    String src = "path/to/original/file";
    String dest = "path/to/copy/destination";
    DirectoryManager.copyDirectory(src, dest);
  }
}