import sys
import pyinotify

path = sys.argv[1]
outfile = sys.argv[2]
path_to_watch = list(sys.argv[1].split(','))

f = open(outfile,'a')

watch_me = pyinotify.WatchManager()  
mask = pyinotify.IN_DELETE | pyinotify.IN_CREATE 

class EventHandler(pyinotify.ProcessEvent):
    def process_IN_CREATE(self, event):
	f.write("File Created:"+ event.pathname)
    
handler = EventHandler()
notifier = pyinotify.Notifier(watch_me, handler)
for path in path_to_watch:
	wdd = watch_me.add_watch(path, mask, rec=False)

notifier.loop()
c12c8dadca30baab38d11a1c9f881fdcdc5af99f
import sys
import pyinotify

path = sys.argv[1]
outfile = sys.argv[2]
path_to_watch = list(sys.argv[1].split(','))

f = open(outfile,'a')

watch_me = pyinotify.WatchManager()  
mask = pyinotify.IN_DELETE | pyinotify.IN_CREATE 

class EventHandler(pyinotify.ProcessEvent):
    def process_IN_CREATE(self, event):
	f.write("File Created:"+ event.pathname)
    
handler = EventHandler()
notifier = pyinotify.Notifier(watch_me, handler)
for path in path_to_watch:
	wdd = watch_me.add_watch(path, mask, rec=False)

notifier.loop()