Stats

58 Contributors: 5 Thursday, March 16, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

The os Module

Introduction

This module provides a portable way of using operating system dependent functionality.

Syntax

  • import os

Parameters

ParameterDetails
PathA path to a file. The path separator may be determined by os.path.sep.
ModeThe desired permission, in octal (e.g. 0700)

Related Examples