Changed currentPath to currentDirectory (also changed object type from String to File