lua : add file and directory preference types in lua