buildFileSystemEntry
suspend fun <Path> buildFileSystemEntry(fs: FileSystemProvider.ReadOnly<Path>, path: Path, metadata: FileMetadata): FileSystemEntry(source)
Creates a FileSystemEntry (File or Folder) based on the metadata type.
Decides whether to build a File or Folder according to FileMetadata.type. Does not load file content; files will have Content.None.
Return
a FileSystemEntry corresponding to the provided metadata
Parameters
Path
the filesystem path type
fs
the filesystem provider used to access attributes
path
the path to the file or directory
metadata
metadata describing the entry at path