Switch from FileDirectory to FileSystem. fileDirectory is not available on Pharo2.
Give the "FileDirectory" class for Pharo.