mergin/merginproject.py
def inspect_files(self):
        """
        Inspect files in project directory and return metadata.

        :returns: metadata for files in project directory in server required format
        :rtype: list[dict]
        """
        files_meta = []
        for root, dirs, files in os.walk(self.dir, topdown=True):
            dirs[:] = [d for d in dirs if d not in ['.mergin']]
            for file in files:
                if self.ignore_file(file):
                    continue

                abs_path = os.path.abspath(os.path.join(root, file))
                rel_path = os.path.relpath(abs_path, start=self.dir)
                proj_path = '/'.join(rel_path.split(os.path.sep))  # we need posix path
                files_meta.append({
                    "path": proj_path,
                    "checksum": generate_checksum(abs_path),
                    "size": os.path.getsize(abs_path),
                    "mtime": datetime.fromtimestamp(os.path.getmtime(abs_path), tzlocal())
                })
        return files_meta

        Inspect files in project directory and return metadata.

        :returns: metadata for files in project directory in server required format
        :rtype: list[dict]
        
Inspect files in project directory and return metadata.
Inspect files in project directory and return metadata .
def inspect_files(self):
        files_meta = []
        for root, dirs, files in os.walk(self.dir, topdown=True):
            dirs[:] = [d for d in dirs if d not in ['.mergin']]
            for file in files:
                if self.ignore_file(file):
                    continue
                abs_path = os.path.abspath(os.path.join(root, file))
                rel_path = os.path.relpath(abs_path, start=self.dir)
                proj_path = '/'.join(rel_path.split(os.path.sep))  
                files_meta.append({
                    "path": proj_path,
                    "checksum": generate_checksum(abs_path),
                    "size": os.path.getsize(abs_path),
                    "mtime": datetime.fromtimestamp(os.path.getmtime(abs_path), tzlocal())
                })
        return files_meta
def inspect_files ( self ) : files_meta = [ ] for root , dirs , files in os . walk ( self . dir , topdown = True ) : dirs [ : ] = [ d for d in dirs if d not in [ '.mergin' ] ] for file in files : if self . ignore_file ( file ) : continue abs_path = os . path . abspath ( os . path . join ( root , file ) ) rel_path = os . path . relpath ( abs_path , start = self . dir ) proj_path = '/' . join ( rel_path . split ( os . path . sep ) ) files_meta . append ( { "path" : proj_path , "checksum" : generate_checksum ( abs_path ) , "size" : os . path . getsize ( abs_path ) , "mtime" : datetime . fromtimestamp ( os . path . getmtime ( abs_path ) , tzlocal ( ) ) } ) return files_meta
Inspect files in project directory and return metadata.
Inspect files in project directory and return metadata .
"""
        Inspect files in project directory and return metadata.

        :returns: metadata for files in project directory in server required format
        :rtype: list[dict]
        """ # we need posix path
metadata for files in project directory in server required format
metadata for files in project directory in server required format
list[dict]
self