code: def timestamp(args):
      
      p = OptionParser(timestamp.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 1:
          sys.exit(not p.print_help())
  
      path, = args
      for root, dirs, files in os.walk(path):
          for f in files:
              filename = op.join(root, f)
              atime, mtime = get_times(filename)
              print(filename, atime, mtime)
docs: %prog timestamp path > timestamp.info
  
      Record the timestamps for all files in the current folder.
      filename	atime	mtime
  
      This file can be used later to recover previous timestamps through touch().