#! python3
# deleteUnneeded.py - finds the files and folders that exceed size 100MB for deleting

import os

srcPath = r'J:\STUDIES\AWS'

# walk through th folder
for folderName, subFolders, fileNames in os.walk(srcPath):
    # iterate throught the folders
    for subFolder in subFolders:
        absFolder = os.path.abspath(os.path.join(folderName,subFolder))
        if(os.path.getsize(absFolder) > 100000000):
            print('Folder %s ' % (absFolder))
    # iterate through the files
    for fileName in fileNames:
        absFile = os.path.abspath(os.path.join(folderName, fileName))
        if(os.path.getsize(absFile) > 100000000):
            print('File %s ' % (absFile))
a487ecd946b9ae322de87896dbab50dd41901157
<mask token>

<mask token>
for folderName, subFolders, fileNames in os.walk(srcPath):
    for subFolder in subFolders:
        absFolder = os.path.abspath(os.path.join(folderName, subFolder))
        if os.path.getsize(absFolder) > 100000000:
            print('Folder %s ' % absFolder)
    for fileName in fileNames:
        absFile = os.path.abspath(os.path.join(folderName, fileName))
        if os.path.getsize(absFile) > 100000000:
            print('File %s ' % absFile)

<mask token>
srcPath = 'J:\\STUDIES\\AWS'
for folderName, subFolders, fileNames in os.walk(srcPath):
    for subFolder in subFolders:
        absFolder = os.path.abspath(os.path.join(folderName, subFolder))
        if os.path.getsize(absFolder) > 100000000:
            print('Folder %s ' % absFolder)
    for fileName in fileNames:
        absFile = os.path.abspath(os.path.join(folderName, fileName))
        if os.path.getsize(absFile) > 100000000:
            print('File %s ' % absFile)

import os
srcPath = 'J:\\STUDIES\\AWS'
for folderName, subFolders, fileNames in os.walk(srcPath):
    for subFolder in subFolders:
        absFolder = os.path.abspath(os.path.join(folderName, subFolder))
        if os.path.getsize(absFolder) > 100000000:
            print('Folder %s ' % absFolder)
    for fileName in fileNames:
        absFile = os.path.abspath(os.path.join(folderName, fileName))
        if os.path.getsize(absFile) > 100000000:
            print('File %s ' % absFile)

#! python3
# deleteUnneeded.py - finds the files and folders that exceed size 100MB for deleting

import os

srcPath = r'J:\STUDIES\AWS'

# walk through th folder
for folderName, subFolders, fileNames in os.walk(srcPath):
    # iterate throught the folders
    for subFolder in subFolders:
        absFolder = os.path.abspath(os.path.join(folderName,subFolder))
        if(os.path.getsize(absFolder) > 100000000):
            print('Folder %s ' % (absFolder))
    # iterate through the files
    for fileName in fileNames:
        absFile = os.path.abspath(os.path.join(folderName, fileName))
        if(os.path.getsize(absFile) > 100000000):
            print('File %s ' % (absFile))