(start_path)
return size
Finds the total size of a folder and it's contents
        Args:
            start_path (str): path to folder
        Returns:
            size (int): folder size in bytes
Finds the total size of a folder and it's contents
        Args:
            start_path (str): path to folder
        Returns:
            size (int): folder size in bytes
Finds the total size of a folder and it s contents Args : start_path ( str ) : path to folder Returns : size ( int ) : folder size in bytes
def getDirSize(start_path):
    """Finds the total size of a folder and it's contents
        Args:
            start_path (str): path to folder
        Returns:
            size (int): folder size in bytes
    """
    size = 0

    for folderName, subFolder, filename in os.walk(start_path):
        for file in filename:
            filePath = os.path.join(folderName, file)
            size += os.path.getsize(filePath)


    return size
def getDirSize ( start_path ) : size = 0 for folderName , subFolder , filename in os . walk ( start_path ) : for file in filename : filePath = os . path . join ( folderName , file ) size += os . path . getsize ( filePath ) return size