Replace all occurrences of parentID with relDir.
Add getPath argument to return path rather than load file.