parentDir uses base directory by default