Author | Message |
---|---|
prenteria
Posts: 13
|
Posted 18:43 Oct 17, 2010 |
Professor Sun: The requested output is:
Folder1
File4 Folder1 Folder2 1000
But we are requesting all the regular folders under the given folder (Folder1)
Is not the right output?
File4 Folder1 Folder2 1000 |
cysun
Posts: 2935
|
Posted 18:48 Oct 17, 2010 |
Please read the code again. |
prenteria
Posts: 13
|
Posted 19:20 Oct 17, 2010 |
I am sorry, but considering:
Folder1\
Folder2\
File1
File3File2
File4
FileTest.java does the following: print( fileDao.getTopLevelFiles( user ) ); which output should be: File4 Then, it does: print( topLevelFolders ); which output should be: Folder1 Then it does: print( fileDao.listFolders( topLevelFolders.get( 0 ))); wihch output is only: Folder2 because that is the only one under Folder1 or, am I misunderstanding the chart? And finally it does: System.out.println( fileDao.getDiskUsage( user ) ); which output is: 1000Thank you, |
cysun
Posts: 2935
|
Posted 22:51 Oct 17, 2010 |
Then I guess you should read the homework again: public List<File> getTopLevelFiles( User user ) - this method should return all the top level (i.e. with no parent) regular files and folders owned by the given user. |
prenteria
Posts: 13
|
Posted 23:46 Oct 17, 2010 |
I did it. Then, I got the output. Thank you |