You are the master on this! Keep up the good work!
@alfredingram12804 жыл бұрын
Thank you Jie - very useful!
@dustonmeyer3770 Жыл бұрын
I have a folder full of .jpg files how do I move 25 randomly selected .jpgs from the folder and move them into a new folder "I want it to automatically create the folder when i automate the move" and have it repeat until all the files have been moved from the source folder. Thanks
@markmcfadden74282 жыл бұрын
Thanks that was a very useful vid
@BySixa2 жыл бұрын
Thank you Jie. Out of curiosity, why does your file path work with \ and mine only works with /. Is there a reason for this? Again, thank you! really helped with my understanding of implementing os.walk
@jiejenn2 жыл бұрын
Without looking at your screen, it is hard to tell.
@BySixa2 жыл бұрын
@@jiejenn no problem. Thank you anyway Jie, great help!
@wakkiephone2 жыл бұрын
Hi, can you guide me if I want to move files from different locations into one location?
@annietrinh14523 жыл бұрын
what if i have 3 sub-folders in 1 parent folder and i only want select files from only 1 sub-folders to other folder? Something like Main folder 1- Kid Cloth | Inside this parent folder is thousand of sub-folder as 1.1-socer blue shirt; 1.2-socer yellow shirt; 1.3-socer white shirt....1.1000-socer colorful shirt---> and inside each of this sub-folder is 3 other sub-folder as 1.1.1-main photo; 1.1.2-detail page photo; 1.1.3-variations photos. Now i want to select all image file only from sub-folder 1.1.3-variations photos to 1 other Folder....and it from thousand of other sub-folder. What can I do?
@rockrollandfunk26914 жыл бұрын
Question, (the code and this video have been of real help) can I set 'file' to file = "ReadCMI" which is a file?!
@angelaepakalibimbi2102 жыл бұрын
I have a problem I have installed pil in pydroid now I want to know how to import PNG files into pil please help I am a beginner so I can open images
@bingqingzhu27015 жыл бұрын
why we should add '\\' at the end of the file path?
@jiejenn5 жыл бұрын
In Python, backslash ("\") is a special string that represents escape key, to actually print the character "\", you will have to use two backslashes instead of one. If you want to avoid having the need to type two backslashes, you can convert the file path string with raw string like file_path *= r'c:\MyDocument\MyUserId\'*
@bingqingzhu27015 жыл бұрын
@@jiejenn got it. Thx.
@EtBukaneluu4 жыл бұрын
I don't understand why you are typing if file:
@ramyainchara53503 жыл бұрын
Could you please help me to write a code to remove empty subfolders after copying all files into the parent directory ?. You have written code to move files, so, I want to remove empty folders.
@jiejenn3 жыл бұрын
Don't have the time. Try UpWork, there I am sure you can find help.
@peddinenivinitha50762 жыл бұрын
can u please write a code for move subfolders to specified folder with files
@jiejenn2 жыл бұрын
Are you going to pay me?
@rinkiyadav25914 жыл бұрын
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'
@jiejenn4 жыл бұрын
It means the file is being used by a different software/program. You will need to kill the process that is using the file, then kill the process.
@rinkiyadav25914 жыл бұрын
@@jiejenn yes sir i want to kill or close before moving file