(self, filename, in_dir)
return found_list
is a specific layer filename referenced by another image TAG
is a specific layer filename referenced by another image TAG
is a specific layer filename referenced by another image TAG
def _find(self, filename, in_dir):
        """is a specific layer filename referenced by another image TAG"""
        found_list = []
        if FileUtil(in_dir).isdir():
            for fullname in os.listdir(in_dir):
                f_path = in_dir + '/' + fullname
                if os.path.islink(f_path):
                    if filename in fullname:       # match .layer or .json
                        found_list.append(f_path)  # found reference to layer
                elif os.path.isdir(f_path):
                    found_list.extend(self._find(filename, f_path))
        return found_list
def _find ( self , filename , in_dir ) : found_list = [ ] if FileUtil ( in_dir ) . isdir ( ) : for fullname in os . listdir ( in_dir ) : f_path = in_dir + '/' + fullname if os . path . islink ( f_path ) : if filename in fullname : # match .layer or .json found_list . append ( f_path ) # found reference to layer elif os . path . isdir ( f_path ) : found_list . extend ( self . _find ( filename , f_path ) ) return found_list