public GetFile ( string path ) : StoreFile | ||
path | string | The file path. |
return | StoreFile |
public StoreFile GetFile(string path)
{
if(path == null) {
throw new ArgumentNullException(path);
}
Guid? id = GetFileId(path);
if(id.HasValue && files.ContainsKey(id.Value)) {
return files[id.Value];
}
// not found
return null;
}