Tag: folder
Linux: Create directory or folder using mkdir command
In this article we will discuss how to create a single or multiple directories in Linux using mkdir command. Then we will see various examples like, creating folders with space in name or creating folders with different permissions or creating nested directories recursively in single command. Table of Contents mkdir command – Introduction Create a …
Linux: Create directory or folder using mkdir commandRead More
Delete a folder that is not empty in Python
Python provides a great communication channel with OS, hence it can delete, move, create files in the system. In this Python tutorial, we will learn about some methods using which we remove/delete a folder that is not empty. Table Of Contents Method 1 : Using shutil module Method 2 : Using OS module Summary Here …
How to delete the contents of a folder in Python?
File handling in Python programming is a skill every python developer must have. In this python article, we will learn to delete the contents of a folder in Python programming language. Table Of Contents Method 1 : Using OS module os.remove() os.unlink() Method 2 : Using shutil module Method 3: Using pathlib module Summary Method …