filmov
tv
Python Primers #3 - os vs pathlib modules for path/filesystem operations

Показать описание
In this video, we will look at two modules in Python that can be used to build paths and check whether files/directories exist.
1. the "os" module - an older module that contains a range of different utilities
2. the "pathlib" module - a newer module (Python 3.4+) that contains object-oriented utilities for working with paths/files.
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:17 os module
00:59 os module: check if path exists
01:36 os module: check if path is a file
02:28 os module: get current directory
02:46 os module: building paths
03:20 os module: check if path is a directory
04:02 pathlib module
04:16 pathlib module: Path object
04:47 pathlib module: resolve() function
05:36 pathlib module: check if path exists
05:58 pathlib module: check if path is a file
06:12 pathlib module: check if path is a directory
06:27 pathlib module: building paths
07:48 pathlib module: getting file extension
08:19 os module: getting file extension
09:06 Summary
09:00 outro
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#python #os #pathlib
1. the "os" module - an older module that contains a range of different utilities
2. the "pathlib" module - a newer module (Python 3.4+) that contains object-oriented utilities for working with paths/files.
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
▶️ Full Playlist:
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:17 os module
00:59 os module: check if path exists
01:36 os module: check if path is a file
02:28 os module: get current directory
02:46 os module: building paths
03:20 os module: check if path is a directory
04:02 pathlib module
04:16 pathlib module: Path object
04:47 pathlib module: resolve() function
05:36 pathlib module: check if path exists
05:58 pathlib module: check if path is a file
06:12 pathlib module: check if path is a directory
06:27 pathlib module: building paths
07:48 pathlib module: getting file extension
08:19 os module: getting file extension
09:06 Summary
09:00 outro
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#python #os #pathlib
Python Primers #3 - os vs pathlib modules for path/filesystem operations
Python Primers #2 - Archiving files created over 1 week ago to a ZIP file
Python Primers #1 - Filesystem Operations with the os, glob, heapq, and zipfile modules
#python #eazytutor Python Primer - Session3 String and List
Python in 100 Seconds
Python Basics OS Scandir Method
python tutorials for beginners | os in python | glob in python | python modules [2020]
Python OS Module | The best functions
Python Primer - Installing Parallel for Mac (for Macs only)
Linux Essentials L2.0 Python primer
#python #eazytutor Python Primer - Session1 Introduction and Syntax
Python Primers #4 - Lists vs Sets (for lookup efficiency)
Python for Beginners - Learn Coding with Python in 1 Hour
OS module in Python | Python Tutorials - 2022| Codegnan
C++ in 100 Seconds
12 Must-Know Python Built-in Functions
Lets Learn Python | Installation, Variables, String Slicing, Lists and List Functions
Python Primer 4: Conditionals
Complete Python Installation Guide for Mac/Linux
Python Programming IDE Primer
Learn Python Episode #2: Mac/Linux Installation
Raspberry Pi Explained in 100 Seconds
Python Tutorial: if __name__ == '__main__'
Install Python 3.6.3 to Windows 7
Комментарии