glob tag

2 questions


1 answers
96 views
0
How to recursively find files using Glob()?

I want to use Glob() to recursively find the file.The code I use is Glob(os.path.join('src','*.c'))This code is currently in the src directory only.Locate the c file.Also in the subdirectory of src Ho...

1 years ago

1 answers
91 views
0
Shutil and for questions

import globimport shutilimport osimport sysfilename = glob.glob('**/*.jpg', recursive=True)filename = [os.path.basename(name) for name in filename]for name in filename: if not os.path.exists('jpg_file...

1 years ago

© 2024 OneMinuteCode. All rights reserved.