Better implementation of EnsureFileSystemExists