简体   繁体   English

按年份将文件夹(包括文件)移动到新的父文件夹

[英]Move Folders (including files) to new parent folder by year

I tried RoboBasket3 but it did not do the job. 我尝试了RoboBasket3,但没有完成任务。 I have searched through various tools but none seem to do the job. 我已经搜索了各种工具,但似乎都做不到。

I have a Pictures folder with 100 GB of data, 525 sub-folders and 25K+ files in the 525 sub-folders. 我有一个图片文件夹,其中包含100 GB的数据,525个子文件夹和525个子文件夹中的25K +文件。 Each of the 525 sub-folders are named based on the content of files eg 'Beach Visit 2010' or 'John Wedding'. 525个子文件夹中的每个子文件夹均基于文件的内容进行命名,例如“ Beach Visit 2010”或“ John Wedding”。

I want to recursively scan all files in each of the 525 folders, read the picture taken year and if all files in the folder are in 1 year move the folder to a parent folder for that year. 我要递归扫描525个文件夹中的所有文件,读取当年拍摄的照片,如果该文件夹中的所有文件都在1年内,则将该文件夹移至该年的父文件夹。

eg John Wedding has 100 pictures all of which were taken in Oct 2010. So I want to move the John Wedding folder to a new parent folder called 2010. If a second folder also has files for 2010 then that folder should also be moved to the 2010 year folder (without removing the John Wedding folder from the folder) 例如,John Wedding有100张照片,所有照片都是在2010年10月拍摄的。因此,我想将John Wedding文件夹移到名为2010的新父文件夹中。如果第二个文件夹中也有用于2010的文件,则该文件夹也应移至2010年文件夹(不从文件夹中删除John Wedding文件夹)

I included an example of the current and new organized view I am looking to get. 我提供了一个示例,介绍了我希望获得的当前和新的组织视图。

How can this be achieved via a tool or java code? 如何通过工具或Java代码实现呢? I am on windows 7. 我在Windows 7上。

在此处输入图片说明

If you were to import all the photos to an iPhoto library then it would sort them by year, day, and month, while still keeping their event names from the folders when imported. 如果要将所有照片导入到iPhoto库,则它将按年,日和月对它们进行排序,而导入时仍将其事件名称保留在文件夹中。

Just noticed you are on Windows 7. 刚刚注意到您使用的是Windows 7。

I suspect Photoshop has a simular database but I'm not sure. 我怀疑Photoshop有一个模拟数据库,但不确定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM