MCPcopy Create free account
hub / github.com/geekcomputers/Python / findRecycled

Function findRecycled

recyclebin.py:42–52  ·  view source on GitHub ↗
(
    recycleDir,
)

Source from the content-addressed store, hash-verified

40
41
42def findRecycled(
43 recycleDir,
44): # Start of the function, list the contents of the recyclebin
45 dirList = os.listdir(recycleDir)
46 for sid in dirList:
47 files = os.listdir(recycleDir + sid)
48 user = sid2user(sid)
49
50 print("\n[*] Listing Files for User: " + str(user))
51 for file in files:
52 print("[+] Found File: " + str(file))
53
54
55def main():

Callers 1

mainFunction · 0.85

Calls 1

sid2userFunction · 0.85

Tested by

no test coverage detected