JCL Help:GetDirectorySize

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the size of a directory.


Pascal

 function GetDirectorySize(const Path: string): Int64;


Parameters

Parameters Description
const Path: string The directory whose size to determine.


Return Value

The combined size, in bytes, of all the files contained in the directory. If the function fails, for example because the specified directory doesn't exists, it 1.


Description

GetDirectorySize returns the size, in bytes, of a directory. That is, the combined sizes of all files contained within the directory.


About

Unit

JclFileUtils


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page