/// <summary>Returns the most recent file within this path (any child directories)</summary> public async Task <StoreFileMd> LatestFile(StringPath path = null) { var files = await Files(path, allDirectories : true).SelectManyList(); var latest = files.OrderByDescending(f => StoreFileMd.GetTs(f.Path)).FirstOrDefault(); return(latest); }
/// <summary>Returns the most recent file within this path (any child directories)</summary> async Task <StoreFileMd> LatestFile(StringPath path) { var files = await Files(path, true); var latest = files.OrderByDescending(f => StoreFileMd.GetTs(f.Path)).FirstOrDefault(); return(latest); }