Tagged articles
8 articles
Page 1 of 1
php Courses
php Courses
Apr 10, 2025 · Fundamentals

Python File Path Handling: os.path and pathlib Guide

This article explains how to work with file and directory paths in Python, covering absolute and relative path concepts, the os.path module functions, the modern pathlib API, common operations such as joining, normalizing, traversing, and creating files and directories, and best practices for cross‑platform compatibility.

File PathsPythoncross-platform
0 likes · 8 min read
Python File Path Handling: os.path and pathlib Guide
Test Development Learning Exchange
Test Development Learning Exchange
Feb 8, 2025 · Fundamentals

Using Python’s os, sys, and os.path Modules: Common Operations and Code Examples

This article introduces Python’s os, sys, and os.path modules, demonstrating how to retrieve the current working directory, create and delete directories, list files, execute system commands, access interpreter information, handle command‑line arguments, redirect I/O, and manipulate file paths with practical code snippets.

OS modulePythonfile-handling
0 likes · 4 min read
Using Python’s os, sys, and os.path Modules: Common Operations and Code Examples