3FS/hf3fs_fuse/fuse.py
2025-02-27 21:53:53 +08:00

8 lines
162 B
Python

import os
from pathlib import PosixPath
def get_mount_point(p):
np = os.path.realpath(p)
parts = PosixPath(np).parts
return os.path.join(*parts[:3])