How do I mount a filesystem using Python?

前端 未结 10 1980
鱼传尺愫
鱼传尺愫 2020-12-16 09:41

I\'m sure this is a easy question, my Google-fu is obviously failing me.

How do I mount a filesystem using Python, the equivalent of running the shell command

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 10:13

    Import cdll from ctypes. Then load your os libc, then use libc.mount()

    Read libc's docs for mount parameters

提交回复
热议问题