We normally store data in the database; however, we can also store data within the file system. Joomla! provides us with the
joomla.filesystem library. This library enables us to work easily with the native file system. There are four main classes included in this library:
JPath class is integral to the library. Before we jump in, we must import the relevant library in order to use the
The first three methods we will discuss are:
clean() method is used to tidy up a path by removing any unnecessary directory separators and ensuring that all remaining directory separators are of the correct type for the current system. We use ...