#a simple program to ove files from one directory to the other


import os
import shutil #the module that helps to move the files

pics=('/home/netshadow/Music') #the destination directory
for (path, dirs, files) in os.walk( '/home/netshadow/Pictures'):
#	print (dirs)
#	print (files)
	for filename in files:
		if filename == (filename,'*.jpeg') or filename[-4:]== '.jpeg' or filename[-4:] == '.pdf' or filename[-4:] == '.mp4' or filename == (filename, "*.mp3"):
			paths=os.path.join(path,filename)
			shutil.move(paths,pics)
			print ("done")
			

0278f6aa31f2c9063457b11de47f4866689b1b2c
<mask token>

<mask token>
for path, dirs, files in os.walk('/home/netshadow/Pictures'):
    for filename in files:
        if filename == (filename, '*.jpeg') or filename[-4:
            ] == '.jpeg' or filename[-4:] == '.pdf' or filename[-4:
            ] == '.mp4' or filename == (filename, '*.mp3'):
            paths = os.path.join(path, filename)
            shutil.move(paths, pics)
            print('done')

<mask token>
pics = '/home/netshadow/Music'
for path, dirs, files in os.walk('/home/netshadow/Pictures'):
    for filename in files:
        if filename == (filename, '*.jpeg') or filename[-4:
            ] == '.jpeg' or filename[-4:] == '.pdf' or filename[-4:
            ] == '.mp4' or filename == (filename, '*.mp3'):
            paths = os.path.join(path, filename)
            shutil.move(paths, pics)
            print('done')

import os
import shutil
pics = '/home/netshadow/Music'
for path, dirs, files in os.walk('/home/netshadow/Pictures'):
    for filename in files:
        if filename == (filename, '*.jpeg') or filename[-4:
            ] == '.jpeg' or filename[-4:] == '.pdf' or filename[-4:
            ] == '.mp4' or filename == (filename, '*.mp3'):
            paths = os.path.join(path, filename)
            shutil.move(paths, pics)
            print('done')

#a simple program to ove files from one directory to the other


import os
import shutil #the module that helps to move the files

pics=('/home/netshadow/Music') #the destination directory
for (path, dirs, files) in os.walk( '/home/netshadow/Pictures'):
#	print (dirs)
#	print (files)
	for filename in files:
		if filename == (filename,'*.jpeg') or filename[-4:]== '.jpeg' or filename[-4:] == '.pdf' or filename[-4:] == '.mp4' or filename == (filename, "*.mp3"):
			paths=os.path.join(path,filename)
			shutil.move(paths,pics)
			print ("done")
			
