September 2026
1051 pages
35h 4m
English
Different platforms have different conventions for file system paths. For example, while Windows operating systems expect the drive to which the path refers at the beginning of an absolute path name, Unix prefixes the path with a slash. In addition, the separators for individual folders within the path differ; Microsoft has opted for the backslash, in contrast to the Unix world, where the slash is common.
As a programmer for cross-platform software, you’re now faced with the problem that your programs must cope with these different conventions and those of other operating systems.
To allow handling file system paths conveniently, the os.path module was developed.
You can use this module in two different ways:
Read now
Unlock full access