def METHOD_NAME():
    maxdepth = 100
    localroot = os.getcwd()
    output = ""
    try:
        optlist, args = getopt.getopt(sys.argv[1:], "hvpl:d:o:", ["help"])
    except getopt.GetoptError as error:
        sys.stderr.write("Error: %s\n" % error)
        help()
    for o, a in optlist:
        if o == "-v":
            pass
        elif o == "-p":
            pass
        elif o == "-l":
            localroot = a
        elif o == "-d":
            maxdepth = int(a)
        elif o == "-o":
            output = a
        elif o in ["-h", "--help"]:
            help()
    if output and os.path.isfile(output):
        sys.stderr.write("File: %s exists!\n" % output)
        sys.exit(1)
    logit("Processing:\n")
    tree = ["/", T_DIR, 0, 0, 0, 0, 0, [], ""]
    recurse(localroot, "/", tree[A_CONTENTS], maxdepth)
    if output:
        pickle.dump(tree, open(output, "wb"))
    else:
        print(pickle.dumps(tree))