Releases: Sp0k/GSLib
Releases · Sp0k/GSLib
v1.2-beta
V1.1-beta
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
Stringsrcand a Stringdestto 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
Stringsrcand a Stringdestto 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);
}
}
