Question : find folder linux
Answered by : jonas-berhin
find / -type d -name 'folder_name'
Source : | Last Update : Mon, 15 Feb 21
Question : find folder in linux
Answered by : dark-dotterel-qimilmshc20q
find / -name "dir-name-here"
Source : https://www.cyberciti.biz/faq/howto-find-a-directory-linux-command/ | Last Update : Thu, 14 Jan 21
Question : linux find directory and file
Answered by : steamboatid
find -type f -or -type d
Source : https://unix.stackexchange.com/questions/53734/how-to-find-both-regular-files-and-directories | Last Update : Thu, 21 Oct 21
Question : find_dir
Answered by : awful-ant-4gspjm16dna1
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)
Source : https://python-forum.io/thread-36277.html | Last Update : Fri, 11 Feb 22