-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecho.py
executable file
·35 lines (23 loc) · 939 Bytes
/
echo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
from workthief2 import WorkThief as Base
################################################################################
class EchoFiles(Base):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def __init__(self):
Base.__init__(self)
return
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def process_directory(self, dirname, statinfo=None):
Base.process_directory(self,dirname,statinfo)
print(dirname)
return
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def process_file(self, filename, statinfo=None):
Base.process_file(self,filename,statinfo)
print(filename)
return
################################################################################
if __name__ == "__main__":
ef = EchoFiles()
ef.run()
ef.summary()