在Python中移动特定格式名称的子目录

时间:2019-02-20 09:50:57

标签: python operating-system shutil

我有一个目录( Update LegMove set Event_Code = max(case when m.Status_Description = 'DPKL' then l.Status_Description else NULL end), Create_Date = max(case when m.Status_Description = 'DPKL' then dateadd(dd,datediff(dd,0,l.Move_Create_Timestamp),0) else NULL end), PTimeStamp=max(case when m.Status_Description = 'DPKL' then l.Move_Create_Timestamp else NULL end), Acrual_Date=max(case when m.Status_Description = 'DPKL' then dateadd(dd,datediff(dd,0,l.Move_Status_Timestamp),0) else NULL end) FROM wrkLegMove m inner join MovementMaster l with(nolock) on l.Leg_Key = m.Leg_Key and l.Status_Description = m.Status_Description and l.Move_Create_Timestamp = m. FirstMoveTime where m.Status_Description in ('DPKL') group by m.Leg_Key, l.Shipment_Number, l.Shipment_Leg_Sequence ),其中包含多个子目录级别,我希望找到名称格式为D:/test/src且由3个连字符分隔的所有子文件夹,并将这些子文件夹移至{{1} }。

如何在Python中实现?感谢您的提前帮助。

0 个答案:

没有答案