MCPcopy Create free account
hub / github.com/PrivacySafe/sticktock / getFileSize

Function getFileSize

backend-api/utils/disk-utils.ts:142–145  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

140};
141
142function getFileSize(filePath: string): number {
143 const stats = fs.statSync(filePath);
144 return stats.size;
145}
146
147function getFolderSize(folderPath: string): number {
148 let totalSize = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected