Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 660 Bytes
if callfunc == 'initialize':
for filename in callargs: # callargs has all of the command line arguments in it.
# just like python's open() function
myfileobject = open(filename,"w")
# we also could have used myfileobject.write("hello world\n")
print >> myfileobject, "hello world"
# now we'll go through and print the files in this directory
# (it may include things other than our files).
print listdir()
for filename in callargs: # let's remove our files now...
print "The files:",callargs," should now be missing from ",listdir()