From 6bd15a32c83b73f3517e40bc5454095248f07f8c Mon Sep 17 00:00:00 2001 From: vashist99 Date: Sat, 25 Jan 2020 02:36:28 +0530 Subject: [PATCH] fileExplorer --- fileExplorer/files.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 fileExplorer/files.py diff --git a/fileExplorer/files.py b/fileExplorer/files.py new file mode 100644 index 0000000..93d6c4c --- /dev/null +++ b/fileExplorer/files.py @@ -0,0 +1,12 @@ +import glob +a = [] +print("Enter the directory:") +s1 = str(input()) +s2 = s1+"/*" +a = glob.glob(s1+"/*") + + + +for i in range(len(a)): + s = a[i] + print(s[len(s1):]) \ No newline at end of file