【发布时间】:2020-01-27 18:21:33
【问题描述】:
我想知道 Windows 10 中是否有一项功能允许用户使用多个属性对文件进行排序:我有一个文件夹,里面装满了用不同相机拍摄的照片,这些照片显示了不同属性的拍摄日期;日期可以存储为
- 上次修改
- 上次收购
- 最后的创作
我想使用某种算法对它们进行排序,该算法检查当前文件是否存在应该排序的默认属性,如果不存在,则默认为该文件使用另一个属性,喜欢
sortFolderWithOptions(sortAttribute1,sortAttribute2,...) {
/* every file gets a default attributes to be sorted by */
arraySortAttributes = Array(Folder.fileLenght).fill(sortAttribute1);
for(i = 0, i < Folder.fileLenght, i++) {
/* but if the default sort attribute for this file is missing, the next sort attribute is used instead, for this file */
if(Folder.file[i].sortAttribute1 == null) arraySortAttributes[i] = sortAttribute2;
}
/* using default Windows Folder sorting algorithm */
defaultWndowsSortFolder(arraySortType);
}
sortFolderWithOptions(lastAcquisition,lastCreated)
如果 Windows 不存在类似的功能,那么 Linux 是否有任何类似的功能?或者有没有办法用某种编程语言进行这种排序或快速更改大量文件的文件数据(不是手动)?
【问题讨论】:
-
这对 SO 来说是个糟糕的问题。如果您正在谈论文件夹窗口,请按您的最少排序选项排序,然后按您最喜欢的选项排序。所以最后一次创建,最后一次获取,然后最后一次修改。
标签: windows-10 sorting date file-attributes