Note:
The DIR module contains functions for directory management.
~createdir()
It takes one argument which is the name of the directory to create. The name can be a full path, all missing parts of the path will be created if needed.Note : This function calls the createdir function from templeet.php
Example :
~createdir('foo/bar/thing')
If 'foo' and 'bar' don't exist, they are created as well.
~compactdir()
This function takes a path to compact and returns the compacted form of the path by following the '.' and '..' parts and making the shortest possible path.This function is mainly used for security reasons. It can check a path passed as a parameter doesn't break a security restriction.
Example :
~compactdir('/var/www/Templeet/templates/../linuxfr/')
The result is : /var/www/Templeet/linuxfr/