Back to index

python3.2  3.2.2
Functions
lll Namespace Reference

Functions

def lll
def main

Function Documentation

def lll.lll (   dirname)

Definition at line 10 of file lll.py.

00010 
00011 def lll(dirname):
00012     for name in os.listdir(dirname):
00013         if name not in (os.curdir, os.pardir):
00014             full = os.path.join(dirname, name)
00015             if os.path.islink(full):
                print(name, '->', os.readlink(full))
def lll.main ( void  )

Definition at line 16 of file lll.py.

00016 
00017 def main():
00018     args = sys.argv[1:]
00019     if not args: args = [os.curdir]
00020     first = 1
00021     for arg in args:
00022         if len(args) > 1:
00023             if not first: print()
00024             first = 0
00025             print(arg + ':')
00026     lll(arg)