replace IOException with FileSystemException in MemoeryFileSystem
replace IOException with FileSystemException in Directories