mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-03 19:36:20 +00:00
8 lines
162 B
Python
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])
|