private void DuplicateFile(Path selected, String filename) { Path duplicate = new Path(selected.getParent(), filename, selected.getType()); BrowserController.CopyPath(selected, duplicate); }