os.mknod() in Python is used to create a file system node, that is, a file, device special file, or named pipe with the specified pathname.
Syntax: os.mknod (path, mode = 0o600, device = 0, *, dir_fd = None)
path: A path-like object representing the file system path.
device (optional): This defines the newly created device files. The default value of this parameter is 0.
dir_fd (optional): This is a file descriptor referring to a directory.
Return type: strong> This method does not return any value.
Code: using method
File system node is created successfully
Roger Jennings is an author and consultant specializing in Microsoft .NET n-tier database applications and data-intensive Windows Communication Foundation (WCF) Web services with SQL Server. He’s be...
Professional-quality code does more than just run without bugs. It’s clean, readable, and easy to maintain. To step up from a capable Python coder to a professional developer, you need to learn indu...
A recipe for having fun and getting things done with the Raspberry Pi ...
Python for Programmers: with Big Data and Artificial Intelligence Case Studies This book, written for programmers with a high-level experience in another language, uses how-to instructions to teach...