File size: 301 Bytes
132e30c
 
0211e76
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import os

for base in ["/data", "/app", "/home", "/tmp", "/"]:
    print(f"\n=== CHECK {base} ===")
    try:
        for root, dirs, files in os.walk(base):
            for name in files[:5]:
                print(os.path.join(root, name))
            break
    except:
        print("cannot access")