// this is an example for Darwin (iOS) file system
<?php
$it=new DirectoryIterator("glob:///Users/hybrid/projects/backupfiles/*.py");
print("\nHere's is the example for memory occupied in kilobytes"."\n\n");
foreach($it as $f) {
// output in kilobytes
printf("%s: %.1FK\n", $f->getFilename(), $f->getSize()/1024);
}
print("\nHere's is the example for memory occupied in bytes"."\n\n");
foreach($it as $f) {
// output in kilobytes
printf("%s: %.1FK\n", $f->getFilename(), $f->getSize());
}
?>