cp6 / BunnyCDN-API

Featured packed PHP class for BunnyCDN pull zone, storage zone and video streaming API
41 stars 15 forks source link

dirSize seems to need leading slash for dir while other functions dont #35

Closed gb5256 closed 6 months ago

gb5256 commented 7 months ago

Check this:

Your DirSize function needs a leading slash for the DIR or will just get zero size back (like the folder does not exist at all). $bunny->dirSize("/pets");

While other functions do not need to have a leading slash. $bunny->folderExists("pets");

gb5256

cp6 commented 7 months ago

Thanks for picking this up, will fix it.

cp6 commented 6 months ago

fixed here https://github.com/cp6/BunnyCDN-API/commit/45f103ab3e4f7e83c143c4f0879d07740858cf1e