Match search patterns to what you will find.
Glob module
Advanced pathnames
Report a typo
Match the items from left and right columns
glob.glob('my_dir\\b*[!bf].*')glob.glob('my_dir\\[bf]*.*')glob.glob('my_dir\\[b-f]*.*')glob.glob('my_dir\\*[!b]')Subdirectories with names which do not end in b.
Filenames starting with b but not ending with b or f.
Filenames starting with b, c, d, e or f.
Filenames starting with either b or f.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.