public static List<string[]> fn_getPcFiles(String pc_fd, List<string> filterList)
{
List<string[]> list = new List<string[]>();
var ext = filterList;
foreach (string file in Directory.GetFiles(pc_fd, "*.*").Where(s => ext.Any(e => s.ToLower().EndsWith(e))).OrderByDescending(f => new FileInfo(f).LastWriteTime))
{
FileInfo f = new FileInfo(file);
list.Add(new string[]{fn_getOnlyFileNm(file)
, f.Length.ToString()
, f.LastWriteTime.ToString()
, file});
}
return list;
}
'워크' 카테고리의 다른 글
sessionStorage localStorage (0) | 2020.07.15 |
---|---|
blazor MatTab (0) | 2020.07.13 |
NavigationManager 시트 (0) | 2020.07.12 |
BlazorInputFile FileUpload (0) | 2020.07.11 |
생성 주기 (0) | 2020.07.09 |