Skip to content

Instantly share code, notes, and snippets.

View Wingjam's full-sized avatar
🦄

Jonathan Martineau Wingjam

🦄
View GitHub Profile
@Wingjam
Wingjam / print_file_bigger_than.py
Created August 19, 2017 19:22
Print all files bigger than the size received in parameter
import argparse
import os
import math
parser = argparse.ArgumentParser(description="Print all files bigger than the size received in parameter")
parser.add_argument("-p", "--path", help="The path where to find files recursively", type=str, default=".")
parser.add_argument("-s", "--size", help="The size (in bytes) minimum to print files", type=int, default=0)
args = parser.parse_args()