pub fn file_id(file: Option<&File>, path: &Path) -> Result<FileId>
Returns a unique identifier for the given file by handle or path.