Implement file system stats

This commit is contained in:
2024-11-09 23:11:23 +01:00
parent 9688b2d528
commit 7b1da94e8a
4 changed files with 98 additions and 8 deletions

View File

@@ -33,3 +33,8 @@ func (fs *FileSystem) ValidatePath(userID, workspaceID int, path string) (string
return cleanPath, nil
}
// GetTotalFileStats returns the total file statistics for the file system.
func (fs *FileSystem) GetTotalFileStats() (*FileCountStats, error) {
return fs.countFilesInPath(fs.RootDir)
}