@@ -22,33 +22,46 @@ public static FolderContents getContentsOfFolder(String path, User authenticated
22
22
switch (path ) {
23
23
case "/" :
24
24
folderContents = FolderContents .builder ()
25
- .files (new File []{new File (0 , "DummyFileInRoot.txt " , 420 , 0 , Instant . now (). getEpochSecond () , FileSystemType .TEXT , null )})
25
+ .files (new File []{new File (0 , "Passwords.crypt " , 420 , 0 , 1897550098 , FileSystemType .TEXT , null )})
26
26
.folders (new Folder []{
27
- new Folder (1 , "/bla " , "bla " , 12345 , 0 , Instant .now ().getEpochSecond (), null ),
28
- new Folder (2 , "/fasel " , "fasel " , 12345 , 0 , Instant . now (). getEpochSecond () , null )
27
+ new Folder (1 , "/dhbw " , "DHBW " , 87568438 , 0 , Instant .now ().getEpochSecond (), null ),
28
+ new Folder (2 , "/homework " , "Homework " , 1897557698 , 0 , 1577836800 , null )
29
29
})
30
30
.build ();
31
31
break ;
32
32
case "/bla" :
33
33
folderContents = FolderContents .builder ()
34
+ .folders (new Folder []{
35
+ new Folder (3 , "/se" , "SE" , 18975576 , 0 , 1601148846 , null ),
36
+ new Folder (4 , "/ti-3" , "TI-3" , 69 , 0 , 1599936800 , null )
37
+ })
34
38
.files (new File []{
35
- new File (3 , "DummyFileInBla.pdf" , 42 , 0 , Instant .now ().getEpochSecond (), FileSystemType .PDF , null ),
36
- new File (4 , "DummyFileInBla1.jpg" , 1234321 , 0 , Instant .now ().getEpochSecond (), FileSystemType .PICTURE , null )
39
+ new File (4 , "WhatIsThis" , 42 , 0 , 153354 , FileSystemType .UNDEFINED , null ),
40
+ new File (5 , "HerrMeyerSieWissenDochImmerAlles.mp3" , 27565846 , 0 , 1599147368 , FileSystemType .AUDIO , null ),
41
+ new File (6 , "cucumberTestsWorkProve.mp4" , 224850446 , 0 , 1602047368 , FileSystemType .VIDEO , null ),
42
+ new File (7 , "WeirdScreenshot.jpg" , 4866848 , 0 , 1599949968 , FileSystemType .PICTURE , null ),
43
+ new File (8 , "ILikeThisFileType.md" , 96643 , 0 , 1598888868 , FileSystemType .TEXT , null ),
44
+ new File (9 , "MyFirstWebsite.html" , 861858 , 0 , 1601584968 , FileSystemType .TEXT , null ),
45
+ new File (10 , "JavaScriptFTW.js" , 176643 , 0 , 1597388868 , FileSystemType .TEXT , null ),
46
+ new File (11 , "TheyWillNeverKnow.crypt" , 75896643 , 0 , 1600188868 , FileSystemType .UNDEFINED , null ),
47
+ new File (12 , "Opportunismus und Repression.pdf" , 4826643 , 0 , 1589998868 , FileSystemType .PDF , null ),
48
+ new File (13 , "ProfsINeedToBribeOrCharm.txt" , 153 , 0 , Instant .now ().getEpochSecond (), FileSystemType .TEXT , null ),
49
+ new File (14 , "FinishedFileFighterBE.java" , 846846643 , 0 , 1624752000 , FileSystemType .TEXT , null ),
37
50
})
38
51
.build ();
39
52
break ;
40
53
case "/fasel" :
41
54
folderContents = FolderContents .builder ()
42
- .files (new File []{new File (5 , "DummyFileInFasel.txt" , 420 , 0 , Instant .now ().getEpochSecond (), FileSystemType .TEXT , null )})
43
- .folders (new Folder []{new Folder (6 , "/fasel/johndoessecretchamber " , "JohnDoesSecretChamber " , 12345 , 0 , Instant .now ().getEpochSecond (), null )})
55
+ .files (new File []{new File (15 , "DummyFileInFasel.txt" , 420 , 0 , Instant .now ().getEpochSecond (), FileSystemType .TEXT , null )})
56
+ .folders (new Folder []{new Folder (16 , "/fasel/johnwishesforasecretchamber " , "JohnWishesForASecretChamber " , 2 , 0 , Instant .now ().getEpochSecond (), null )})
44
57
.build ();
45
58
break ;
46
- case "/fasel/johndoessecretchamber " :
59
+ case "/fasel/johnwishesforasecretchamber " :
47
60
folderContents = FolderContents .builder ()
48
- .folders (new Folder []{new Folder (7 , "/fasel/johndoessecretchamber /empty" , "Empty" , 12345 , 0 , Instant .now ().getEpochSecond (), null )})
61
+ .folders (new Folder []{new Folder (17 , "/fasel/johnwishesforasecretchamber /empty" , "Empty" , 0 , 0 , Instant .now ().getEpochSecond (), null )})
49
62
.build ();
50
63
break ;
51
- case "/fasel/johndoessecretchamber /empty" :
64
+ case "/fasel/johnwishesforasecretchamber /empty" :
52
65
folderContents = FolderContents .builder ().build ();
53
66
break ;
54
67
default :
0 commit comments