StatFile

Function StatFile 

Source
pub fn StatFile(
    Path: PathBuf,
) -> ActionEffect<Arc<dyn FileSystemReader>, CommonError, FileSystemStatDTO>
Expand description

Creates an effect that, when executed, will retrieve metadata (such as file type, size, and modification times) for a given path.

It uses the FileSystemReader capability from the environment to perform the underlying stat system call asynchronously.

§Parameters

  • Path: The PathBuf of the file or directory to stat.

§Returns

An ActionEffect that resolves with a FileSystemStatDTO.