linux search folder name
mdfind kind:folder "folderName"
find_dir
import re
from pathlib import Path
my_dir = r'G:\div_code\foo_folder'
pattern = re.compile(r'^[A-Z0-9]{8}_\d{4}$')
for ed in Path(my_dir).iterdir():
if ed.is_dir():
#print(ed)
# <stem> path component,without it's suffix
if re.search(pattern, ed.stem):
print(ed)
print(ed.stem)
print('-' * 30)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us