os.mkfifo(path[, mode])
path -- 這是需要建立的路徑
mode -- 這是命名路徑的模式
# !/usr/bin/python3 import os, sys # Path to be created path = "/tmp/hourly" os.mkfifo( path, 0644 ) print ("Path is created")
Path is created