Skip to content

Tag Archives: python-os-module

Modules are simply a python .py file from which we can use functions, classes, variables in another file. To use these things in another file… Read More
In this article, we will be learning on moving a collection of files and folders where there may be files/folders with the same name as… Read More
In this article, we will discuss how to move multiple folders into one folder. This can be done using Python’s OS and Shutil module. Approach:… Read More
Prerequisite: OS module in Python. os.replace() method in Python is used to rename the file or directory. If destination is a directory, OSError will be… Read More
Prerequisites: Webbrowser HTML files contain Hypertext Markup Language (HTML), which is used to design and format the structure of a webpage. It is stored in… Read More
We can get the location (path) of the running script file .py with __file__. __file__ is useful for reading other files and it gives the… Read More
In this article, we are going to delete a CSV file in Python. CSV (Comma-separated values file) is the most commonly used file format to… Read More
A Timestamp is a sequence of characters, that signify the occurrence of an event. Timestamps are required extensively in computer science. This exists of varying… Read More
Prerequisite: Some basic shell commands In programming, the shell is a software interface for accessing the functionality of the operating system. Shells in the operating… Read More
Linux is one of the most popular operating systems and is a common choice for developers. However, it is difficult to remember the vast range… Read More
In this article, we will create a menu-driven Python program which will execute the required user tool when user will give the input as a… Read More
Have you ever wondered that you can open your drives by just typing C, D or E and then that drives are open.This can be… Read More
A Digital Timestamp is a sequence of characters(usually a combination of digits and delimiters), identifying the time when a certain event occurred. In computer science,… Read More
Uptime is the time elapsed since the Operating system started. Operating systems have discrete mechanisms to keep track of this time, which they further utilize… Read More
Prerequisites: Python GUI – tkinter, os.listdir() method, os.rename() method In this article, the task is to rename a batch of images using Python. Now say… Read More