update FileSystem.php: create directory when directory is not exist

create directory when directory is not exist