Windows compatibility for FileSystem::Directory