-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.py
29 lines (21 loc) · 894 Bytes
/
helper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
import time
import shutil
time.sleep(2)
# Folder Name to be deleted
directory = "Pairs-Game-Python"
# Location of the folder to be deleted
parent = "C:\Games"
shutil.rmtree("C:\Games\Pairs-Game-Python", ignore_errors=True)
time.sleep(1)
# time.sleep is used to delay
# Module Details
#Shutil - module
#Shutil module in Python provides many functions of high-level operations on files and collections of files.
# It comes under Python's standard utility modules.
# This module helps in automating process of copying and removal of files and directories.
#os - module
#The OS module in Python provides functions for interacting with the operating system.
# OS comes under Python's standard utility modules.
# This module provides a portable way of using operating system-dependent functionality. ... path*
# modules include many functions to interact with the file system.