buildFileSystemEntry

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

fs

the filesystem provider used to access attributes

path

the path to the file or directory

metadata

metadata describing the entry at path

Type Parameters

Path

the filesystem path type