python - how can i make u1-publish-folder (Ubuntu One) recursive into each folder -
python - how can i make u1-publish-folder (Ubuntu One) recursive into each folder -
how extend each folder in target folder? know recursive every file in subfolders.
http://bazaar.launchpad.net/~sil/+junk/utility-programs/view/head:/u1-publish-folder
alternative if want modify script edit bottom part this: (and yes, sorry double posting keeps cleaner)
if __name__ == '__main__': if len(sys.argv) > 1: folder = sys.argv[1] else: print "syntax: %s folder" % sys.argv[0] sys.exit(1) folder = os.path.realpath(folder) if not os.path.isdir(folder): print "%s not folder. terminating." % (folder,) sys.exit(1) # walk directories within `folder` (dirname, subdirs, files) in os.walk(folder): subdir = os.path.realpath(dirname) if not os.path.isdir(subdir): go on reactor.callwhenrunning(process_folder, subdir) reactor.run()
this should same bash-based reply simple phone call of u1-publish-folder target-folder.
python
Comments
Post a Comment