Tag: directories
Python : How to Get List of all empty Directories ?
In this article we will discuss how to get list of all empty directories. Python’s os module provides a function to iterate over a directory tree i.e. Advertisements os.walk(path) It iterates of the directory tree at give path and for each directory or sub directory it returns a tuple containing, (<Dir Name> , <List of …
Python : How to Get List of all empty Directories ?Read More
Python : How to get list of files in directory and sub directories
In this article we will discuss different methods to generate a list of all files in directory tree. Creating a list of files in directory and sub directories using os.listdir() Python’s os module provides a function to get the list of files or folder in a directory i.e. Advertisements os.listdir(path=’.’) It returns a list of …
Python : How to get list of files in directory and sub directoriesRead More
Python : How to move files and Directories ?
In this article we will discuss different ways to move files and directories in python. In python we have a shutil module that provides various files related operations.  To import the shutil module use following line, Advertisements import shutil It also provides functions to move files i.e. shutil.move(src, dst) It accepts source and destination path as …
Top 10 business directories in Nigeria (2023)
A Business Directory is a collection of company or business data that can be viewed on the Internet. A business directory is also called a listing website or a company dictionary website. On the business directory website, there are general company data, such as company information, company contacts, products sold/services rendered, company address, etc. In …