Skip to content

python实现文件归档功能,保留最近一个月的文件。

Notifications You must be signed in to change notification settings

HeYichigo/file-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

定期归档目录下的图片。 定期功能需要操作系统的计划任务来支持。 归档范围为最近一个月以上的文件,从月初开始到月末。

原理是按照文件日期中年月的部分进行排序,从旧到新,不处理最新的文件。

执行:

python <path to>/collection.py <source path> <target path> 

About

python实现文件归档功能,保留最近一个月的文件。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published