我有一个目录(未处理),其中有一些文件。
我需要一种python方法在另一个目录(已处理)中创建一个带时间戳的子目录(Pr_DDMMYY_HHMiSS),并将提到的文件移动到新创建的子目录(Pr_DDMMYY_HHMiSS)中。要创建的子目录将作为文件更改的备份。
也欢迎其他解决方案设计
主目录(未处理的将承载待处理的文件,处理后,这些文件将移动到Pr_150321_195708(Pr_DDMMYY_HHMiSS)中的已处理文件)
未处理的子目录
已处理子目录
已处理文件夹示例(在运行清空未处理目录并将文件移到此处的过程后)
Tags:
假设脚本与
Processed
和Unprocessed
目录位于同一文件夹中,则可以执行以下操作:在
Windows Pro
上用Python 3.6.4
测试相关问题 更多 >
编程相关推荐