Add initFileList()
in ServerManagement.java
This commit is contained in:
parent
2f202812c8
commit
91ebd05063
@ -13,6 +13,18 @@ public class ServerManagement {
|
||||
initFileList();
|
||||
}
|
||||
|
||||
private void initFileList() {
|
||||
File folder = new File(baseDirectory);
|
||||
File[] files = folder.listFiles();
|
||||
/* Add non-recursively files's names to fileList */
|
||||
for (int i = 0; i < files.length; i++) {
|
||||
if (files[i].isFile()) {
|
||||
fileList.add(files[i].getName());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void upload(String filename) throws NotFound {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user