Operating System Module | File I/O Operations using Python | Get System Info | Explained in Minutes

preview_player
Показать описание
Operating System and Platform Module in Python
🚀 Processing files in Python using the os module includes creating, renaming, moving, deleting files and folders, as well as getting a list of all files and directories, and much more.
In the software industry, most programs process files in one way or another: create them, rename them, move them, and so on. Any programmer should have this skill. In this Video, you will learn how to use the os module in Python to perform operations on files and directories, regardless of the operating system you are using.
It is important to know that the OS module is used not only for working with files. It includes a lot of methods and tools for other operations: processing environment variables, managing system processes, as well as command-line arguments and even extended file attributes that are only available in Linux.
The module is built-in, so you don't need to install anything to work with it.
We have also explained how to get system info using Platform module in Python

🚀 Explained in Minutes is a new series where programming concepts are precisely explained with practical coding examples in crystal clear way.

✅ Please do like, share and subscribe if you find videos and tutorials interesting and fun.

✅ Python modules used :
import os
import platform

❤️ Complete Explained in Minutes Series Playlist:

#OSModuleInPython #FileOperations #GetSystemInfo #ExplainedInMinutes #Python #ASALearning

✅ Connect and Follow on social media:

Feel free to email me about possible collaborations, video or tutorial suggestions, or any questions

🔴 Other Videos you will be interested in:
✅ Reveals of Magic Card Tricks using Python code:

---------------------------------------------------------------------------------------------------------------------------------
Operating System Module in Python
File I/O Operations using Python
Platform Module in python
Get System information using python
Explained in Minutes
ASA Learning
file input and output operations
change directory
Get the Current Directory
Create a new folder using python
Change the current directory using python
Go back to previous directory
Create Multiple Sub-folders using python
Create a new Text file using python
Rename file using code
Move files to another directory
Print all files and folders in current working directory
list all the files and folders
Delete files and folders using code
Delete nested and multiple files and folders
Get System Information using python
Get the system or OS name
Get the underlying platform
print the python version
get the processor name using python
get the environment variables using python
change and modify system environment variables
Рекомендации по теме
Комментарии
Автор

Please do like, share, Subscribe and hit that bell icon ! 📺
More 'Explained in Minutes' Videos and tutorials with Coding examples are coming soon! :) 💻



Thanks for watching! 💓

asalearning
Автор

thanks ASA, quick reply and explain easily way to understand concept with Python

p.ezhilane
Автор

Good, useful. Lots of stuff in the os module, that is for sure 👍

happyvibes
Автор

The github link to the above explained code 💻 and social media links on description !😎

asalearning
Автор

what a nice explanation. great work bro. thank you

cdeworld
Автор

❤️ Complete Explained in Minutes Series Playlist:

asalearning
Автор

Do you know if there is a way to log what is the process name that is making a change to certain file or folder? In your example, you are using explore.exe to create a new .txt file, is there a way to detect that process xyz is the one which actually created, modified or deleted any file that is being monitored? I know psutil for instance can give us the list of running process, but how to combine files being modified with process owner seems to be very complicated thing to do in python if possible at all. thanks.

brunocaseiro
Автор

Can we move file from one directory to another using os module?

johnnycruger
Автор

hi i'm getting this error while executing os.rename('NewFolder', 'NewFolder2') in pycharm :(
FileNotFoundError: [Errno 2] No such file or directory: 'NewFolder' -> 'NewFolder2'

sony
Автор

What is the key of underlying OS module

vigneshkumar
visit shbcf.ru