def exact_files(directory, ignore_links=False):
 found = []
 for (root, _, files) in os.walk(directory, followlinks=(not ignore_links)):
  for f in files:
   p = os.path.join(root, f)
   if (ignore_links and os.path.islink(p)):
    continue
   found.append(os.path.relpath(p, directory))
 return found

def exact_files ( directory , ignore_links = False ) : found = [ ] for ( root , _ , files ) in os . walk ( directory , followlinks = ( not ignore_links ) ) : for f in files : p = os . path . join ( root , f ) if ( ignore_links and os . path . islink ( p ) ) : continue found . append ( os . path . relpath ( p , directory ) ) return found
returns the relative files contained in the directory .