We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e611dae commit a9e59d7Copy full SHA for a9e59d7
bin/File_Dispatcher/main.py
@@ -0,0 +1,18 @@
1
+import shutil
2
+import os
3
+
4
+path = "D:\\Abdul Rehman\\AI Automations\\File_Dispatcher"
5
6
+print("Before Moving Files ")
7
+print(os.listdir(path))
8
9
+m = "D:\\Abdul Rehman\\AI Automations\\Source\\Source\\abd.txt"
10
+print(os.listdir(m))
11
12
+destination = "D:\\Abdul Rehman\\Downloads_Backup\Images"
13
14
+if m.endswith(('.txt')):
15
16
+ dest = shutil.move(source, destination, copy_function="Move")
17
+else:
18
+ print("Unable to Fetch it")
0 commit comments