public FileVar getParent() { File f = file.getParent(); if (f != null) return new FileVar(f); return null; }