Path sacn problem - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Path sacn problem (/thread-34061.html) Pages:
1
2
|
RE: Path sacn problem - Axel_Erfurt - Jun-24-2021 What do you want to achieve in the end? Would you like to read out certain values of files in the leveldb folder? If you know the Path_to/Chrome/User Data you can get a list of all leveldb folders (leveldb_paths) import os mypath = 'Path_to/Chrome/User Data' leveldb_paths = [] for root, dirs, files in os.walk(mypath, topdown = False): for name in dirs: if name.startswith("leveldb"): leveldb_paths.append(os.path.join(root, name))Use these paths for what you want to do. for example: for path in leveldb_paths: # your code |