Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FileSystem {
- private Directory root;
- public FileSystem(Directory d) {
- root = d;
- }
- public void search(String name){
- if (root==null)
- return;
- Elm e = root.search(name);
- if (e==null)
- System.out.println("no such file or directory");
- else
- e.show();
- }
- }
Add Comment
Please, Sign In to add comment