Python File Management : Learn to Move/Copy files based on file types (*.txt, *.jpg)

preview_player
Показать описание
Python File Management : Learn to Move/Copy files based on file types (*.txt, *.jpg)

In this video we will continue with our Python
File Management series and learn how
to move/copy files based on their file types in Python.

In earlier videos we learned how to move/copy files and directories using Python shutil, and now we will learn how to
move/copy certain types of files such as (*.txt, *.jpg) giving you
more flexibility.

(move files based on file type Python,
How to files based on file type Python,
python moving files based on extensions,
moving files by type Python)

This will all be done using the Python glob module.

Just created a facebook page:

Here is my reddit account for sharing links:

Here is my twitter account for programming:

Here is my github account:

Рекомендации по теме
Комментарии
Автор

great tutorial with amazing animation. Thx.

dodokwak
Автор

Outstanding video. Liked and subscribed.

quantumentanglement
Автор

does this only work in that jupyter notebook thing
im trying it in the pycharm IDE and im not sure wether i did something wrong or it just doesnt work outside of that jupyter notebook

fynizion
Автор

i have created an python GUI application where Entry widget, which takes user input to create, >>new folders<< and i have provided the path to create folders in my targeted folder.[A folder]
i have given all dependencies which are required by the application.
my problem is, whenever i am trying to capture images through video (used opencv library) the process is successfull and i have provided the path to save file in my targeted folder [A folder] and it is saved also .
but when the user tries to give random folder name through entry widget, the folder is getting created >>> but images should get saved in that particular file which user have created . <<<
how should i do it?? please help me out

ananthnarayan
Автор

Hello, how can i read only *.png and *.jpg files from a folder containing many files of various formats?

Sabineru
Автор

sir when we use shutil move then this error shows how can close this file before move plz reply
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '20200814124216.wav'

rinkiyadav
Автор

i have a question
for exemple :
i have a lot pdf files which are named by workers name and every file is ending with photo, cv, and other
and i have second folder where there are a lot of worker's folders (by surname, firstname, last name).
Asadov Doston Nayim ugli cv.pdf
Asadov Doston Nayim ugli photo.pdf
Karimov Asliddin Namozovich photo.pdf == similar files

Asadov Doston Nayim Ugli
Karimov Asliddin Namozovich == similar folders

i want to set automaticly remove files by filter to folders . i thing i possible .
# sorry for my english.

dostonasadov
Автор

Thank you for this!!
(Would it be possible to make jupyter tutorial? I am really confused with "jupyter notebook" or "jupyter lab" what is what? Where does it run? On web server?! We should run it from a web browser? Or from command line? etc..)

akiratoriyama