40. OS module in Python || Part-2 || Python Tutorial || By Arihant Jain || Study Material
Hello Friends,
This is the 40th video of this course. I will explain os modules & their useful functions in Python. So, please watch it till the end.
Topics are as follows:-
00:00 Recap
00:28 1. Introduction to os.path
01:38 2. Join Paths:- os.path.join()
04:38 3. Path Component Manipulation:-
os.path.dirname(path)
os.path.basename(path)
os.path.split(os.getcwd())
os.path.splitext(os.path.basename(path))
04:59 4. Get the parent directory:-
os.path.abspath(os.path.join(PATH_TO_GET_THE_PARENT, os.pardir))
11:54 5. If the given path exists:-
os.path.exists(path)
12:00 6. Absolute Path from Relative Path:-
os.path.abspath(path)
18:43 7. Check if the given path is a directory, file, symbolic link, mount point, etc.:-
os.path.isdir(dirname)
os.path.isfile(filename)
os.path.islink(symlink)
os.path.ismount(mount_path)
21:01 8. Change permissions on a file:-
os.chmod(path, mode)
-----------------------------------------------------------------------------------------------------------------------------
We are ready to help you anytime. If you have any doubt/queries just ask in the comment box.
Do not forget to subscribe to this channel.
-----------------------------------------------------------------------------------------------------------------------------
For more information about this module, please visit the official documentation of Python using below link:- 👇👇
1) https://docs.python.org/3.6/library/o...
2) https://docs.python.org/3.6/library/s...
-----------------------------------------------------------------------------------------------------------------------------
If you have not gone through previous videos, check out below and watch it
39. OS module in Python || Part-1:- • 39. OS module in Python || Part-1 || Pytho...
38. operator module in Python:- • 38. operator module in Python || Python Tu...
-----------------------------------------------------------------------------------------------------------------------------
You can download this video's code file using the below link:- 👇👇
https://t.me/studymaterial_1/90
-----------------------------------------------------------------------------------------------------------------------------
Python-Projects:-
• Python Projects
-----------------------------------------------------------------------------------------------------------------------------
Python Complete Tutorial:- 👇👇
• Python Tutorial
-----------------------------------------------------------------------------------------------------------------------------
Visit our website:- 👇
https://material-to-study.web.app/
-----------------------------------------------------------------------------------------------------------------------------
Visit our Telegram Channel:-👇
https://t.me/studymaterial_1
-----------------------------------------------------------------------------------------------------------------------------
Please watch the whole video. If you found it useful, do like, share the video and subscribe to our channel.
We have also made videos on the Interview process.
If you are preparing for the interview, I would suggest going through these videos.
Here are these :
Interview Experiences:-
• Interview Experiences
-----------------------------------------------------------------------------------------------------------------------------
Cognizant Recruitment Process || Cognizant Test Pattern
• Interview Process || Cognizant Recruitment...
-----------------------------------------------------------------------------------------------------------------------------
Cognizant Interview Questions || Cognizant Technical Interview
• Cognizant Interview Questions || Cognizant...
-----------------------------------------------------------------------------------------------------------------------------
Cognizant Interview Questions For Non-CS/IT
• Cognizant Interview Questions For Non CS/I...
-----------------------------------------------------------------------------------------------------------------------------
Please provide your feedback.
Study Material
study material
study Material
Study material