Esempio n. 1
0
     path in which we want to find files
  '''
  print msg
  return


if __name__ == '__main__':
    #print sys.argv
    if len(sys.argv) == 1:
      usage()
      sys.exit()

    help=utils.HELP(usage,BIN,'--help',logger)
    #do_execute=0
    options='ifde:m:'
    opts,args=utils.my_getopt(sys.argv[1:],options+help.get_opt())


    opt_list=''
    name_opts='-name'
    type_opts=''
    exclude_path_list=[]
    maxdep_opts=''
    for opt, arg in opts:
      if opt == '-i':
        name_opts='-iname'
      elif opt == '-f':
        type_opts='-type f'
      elif opt == '-d':
        type_opts='-type d'
      elif opt == '-e':
Esempio n. 2
0
     path in which we want to find files
  '''
    print msg
    return


if __name__ == '__main__':
    #print sys.argv
    if len(sys.argv) == 1:
        usage()
        sys.exit()

    help = utils.HELP(usage, BIN, '--help', logger)
    #do_execute=0
    options = 'ifde:m:'
    opts, args = utils.my_getopt(sys.argv[1:], options + help.get_opt())

    opt_list = ''
    name_opts = '-name'
    type_opts = ''
    exclude_path_list = []
    maxdep_opts = ''
    for opt, arg in opts:
        if opt == '-i':
            name_opts = '-iname'
        elif opt == '-f':
            type_opts = '-type f'
        elif opt == '-d':
            type_opts = '-type d'
        elif opt == '-e':
            exclude_path_list.append('"' + arg + '"')