-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.java
More file actions
29 lines (27 loc) · 752 Bytes
/
main.java
File metadata and controls
29 lines (27 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import swg.WSFile;
import java.io.File;
/**
* Created by Cekis on 2/18/2017.
*/
public class main {
public static void main(String[] args)
{
if(args != null){
switch(args.length){
case 0:
File f = new File("snapshot");
for(File file : f.listFiles()){
WSFile snapshot = new WSFile();
snapshot.readFile("snapshot/" + file.getName());
}
break;
case 1:
WSFile snapshot = new WSFile();
snapshot.readFile(args[0]);
break;
default:
break;
}
}
}
}