How to Use Pathlib in Python | Quickstart Guide or Beginners

Published: 01 January 1970
on channel: PyCharm, a JetBrains IDE
20,230
425

`pathlib` is a part of the standard library that helps you deal with file paths. In this video, we explore the library with examples. We also talk about the different `Path` classes that are available to us, and we talk about the relationships between the different classes in the library. And lastly, we talk about some of the caveats of using the library.

00:00 - Intro
00:15 - The `Path` Object
01:28 - Understanding `Path` objects and their inheritance
02:23 - Utility methods and properties on the `Path` object
03:32 - FileExistsError
03:45 - Chaining methods on the `Path` object
04:34 - Finding duplicate files
05:26 - Iterating over directories
06:09 - Matching filenames
06:35 - Deleting files
07:19 - Using Path objects in other libraries
07:31 - Opening files using Path's open method

Links:
Download PyCharm: https://jb.gg/u8syo9


On this page of the site you can watch the video online How to Use Pathlib in Python | Quickstart Guide or Beginners with a duration of hours minute second in good quality, which was uploaded by the user PyCharm, a JetBrains IDE 01 January 1970, share the link with friends and acquaintances, this video has already been watched 20,230 times on youtube and it was liked by 425 viewers. Enjoy your viewing!