of
suspend fun <Path> of(path: Path, content: FileSystemEntry.File.Content = Content.None, fs: FileSystemProvider.ReadOnly<Path>): FileSystemEntry.File?(source)
Creates a File from a filesystem path.
Return
File if the path exists and is a file, otherwise null
Parameters
Path
the provider's path type
path
the file path to examine
content
the file content, defaults to Content.None
fs
the filesystem provider
Throws
IOException
if I/O error occurs while accessing filesystem