From 9d95d2147126c838dc55a5766d2538b0b4fc82e1 Mon Sep 17 00:00:00 2001 From: piyx Date: Mon, 19 Oct 2020 09:33:02 +0530 Subject: [PATCH] made it os independent --- __pycache__/ext.cpython-38.pyc | Bin 0 -> 608 bytes organize.py | 9 +-------- 2 files changed, 1 insertion(+), 8 deletions(-) create mode 100644 __pycache__/ext.cpython-38.pyc diff --git a/__pycache__/ext.cpython-38.pyc b/__pycache__/ext.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..275e6d4e2afc238ab166da4aac23569fe553f5a6 GIT binary patch literal 608 zcmah{&5qMB5VqsAq-o2~!UOCz(k>S`A%s?HcM(WbmCACkA|cCmvT2jpvfXVqT5cS9 z1P*ZIm3-ySg&QZv%Yu4iM)TQYf1V$W&!^KAf#~AX`0IEJIY5_k{6W?=RV;2OA_$V>!U0bdXii-8!5JD`ae-D)bvpc63_cg4NW2Osb? z{t{l^{|Xtx%k06zBbuyK;dac(K3ym$?eSaLIT|nLXSPpghuWypu*UY2<(0co?O{>X z()QEW?2_$W&b0pL(c!CxmD19|o2{)l9looCRJI?Vc3jrC0Y*#h{%q-JuK2c*t+Uwy zC9;#0I4FT=QFzRKq_2FuhID?wYi2DaTx&|!x&%sF(s-?9>4{-GN*etnz*B(DC5^k< zc0kh36QQ7x)6N-YGwewzT^9Kfv?^O$sg@>oS2=zm%{OGi)P5cDXZg96#^&6an&oq8 zH%{q1^na{O$=a%yCWi=*p}@3IwUDM|jSQ2sM*s*XI3^MPul^W5GT{p>GJLb%6tD+l Sxbw;LMu}}LUxfHS!O(9Q$DMls literal 0 HcmV?d00001 diff --git a/organize.py b/organize.py index e41596f..41db5f2 100644 --- a/organize.py +++ b/organize.py @@ -10,17 +10,10 @@ EXT_NAME = "ext.py" def organize_files(path): - operating_system = platform.system() - if operating_system == "Windows": # Windows - pass - elif operating_system == "Darwin": # Mac - path = os.path.expanduser(path) - else: - print(f"Operating system {operating_system} not currently supported") - sys.exit(0) if not os.path.exists(path): print("ERROR! Invalid location") return + files = os.listdir(path) extns = {os.path.splitext(file)[1].strip(".") for file in files}