View Single Post
  #20  
Old 08-12-2024, 18:56
blue_devil's Avatar
blue_devil blue_devil is offline
Family
 
Join Date: Dec 2011
Location: Observable Universe
Posts: 537
Rept. Given: 110
Rept. Rcvd 73 Times in 46 Posts
Thanks Given: 687
Thanks Rcvd at 895 Times in 297 Posts
blue_devil Reputation: 73
After dowloading the .DS_Store file from this url:
Code:
http://out5.hex-rays.com/.DS_Store
You can extract the path by using the python script below:
Code:
'''SCT'''
import ds_store

def extract_paths(ds_store_path):
    paths = []
    with ds_store.DSStore.open(ds_store_path, 'r') as ds:
        for record in ds:
            paths.append(record.filename)
    return paths

# Usage
ds_store_path = './Untitled.DS_Store'
extracted_paths = extract_paths(ds_store_path)
for path in extracted_paths:
    print(path)
You need 2 python packages to install in you environment
Code:
mac-alias
ds-store

Last edited by blue_devil; 08-12-2024 at 18:57. Reason: typo
Reply With Quote
The Following 3 Users Say Thank You to blue_devil For This Useful Post:
MarcElBichon (08-12-2024), uranus64 (08-12-2024), wx69wx2023 (08-12-2024)