os.walk
os.walk with regex
I\'d like开发者_开发技巧 to get a list of files that apply to a regex that i have. I guess i should use os.walk, but how can i use it with regex?[详细]
2023-02-03 02:01 分类:问答Why isn't os.walk recognising my variable name?
I\'ve written the following in TextWrangler: directory = raw_input(\"See contents of: \") for root, dirs, files in os.walk(direct开发者_StackOverflow中文版ory):[详细]
2023-01-30 14:23 分类:问答I get OSError: [Errno 13] Permission denied: <dir name>, and os.walk exits
I have a script to report me about all files, in a dir开发者_如何学JAVAectory, so that users will be required to erase them (it\'s a really badly managed cluster, w/o real superuser).[详细]
2023-01-15 08:03 分类:问答multicpu bzip2 using a python script
I want to quickly bzip2 compress several hundred gigabytes of data using my 8 core , 16 GB ram workstation.[详细]
2023-01-08 21:22 分类:问答python processs complete list files matched
I\'m trying to get simple code working, unfortunately I\'m a python beginner. My script should return a list of files that doesn\'t match a pattern, more information here :[详细]
2023-01-01 15:01 分类:问答os.walk in python not running with cmd line parameter passed as path
I needed to find the number of files in a folder on the system. This is what i used: file_count = sum((len(f) for _, _, f in os.walk(\'path\')))[详细]
2022-12-31 09:27 分类:问答How to get progress of os.walk in python?
I have a piece of code which I\'m using to search for the executables of game files and returning the directories.I would really like to get some sort of progress indicator as to how far along os.walk[详细]
2022-12-18 17:50 分类:问答Python directory searching and organizing by dict
Hey all, this is my first time recently trying to get into the file and os part of Python. I am trying to search a directory then find all sub directories. If the directory has no folders, add all the[详细]
2022-12-13 20:27 分类:问答