-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileMoverSetUp.java
More file actions
38 lines (36 loc) · 926 Bytes
/
FileMoverSetUp.java
File metadata and controls
38 lines (36 loc) · 926 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
30
31
32
33
34
35
36
37
38
package file_organizer_gui;
import java.nio.file.Path;
public class FileMoverSetUp {
public static Path wordDocDirectory;
public static Path pdfDirectory;
public static Path textFileDirectory;
public static Path powerpointDirectory;
public static Path imageDirectory;
public static Path excelDirectory;
public static Path otherDirectory;
public void registerFileType(Path moveDirectory,String fileType) {
switch(fileType) {
case("Word"):
wordDocDirectory = moveDirectory;
break;
case("PDF"):
pdfDirectory = moveDirectory;
break;
case("Text"):
textFileDirectory = moveDirectory;
break;
case("Powerpoint"):
powerpointDirectory = moveDirectory;
break;
case("Image"):
imageDirectory = moveDirectory;
break;
case("Excel"):
excelDirectory = moveDirectory;
break;
case("Other"):
otherDirectory = moveDirectory;
break;
}
}
}