SilverStripe\Assets\Filesystem
A collection of static methods for manipulating the filesystem.
Synopsis
class Filesystem
{
- // members
- private static integer $file_create_mask = 02775;
- private static integer $folder_create_mask = 02775;
- protected static $cache_folderModTime;
- // methods
- public static void makeFolder()
- public static void removeFolder()
- public static boolean remove_folder_if_empty()
- public void fixfiles()
- public static string folderModTime()
- public static Boolean isAbsolute()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $file_create_mask — integer
- $folder_create_mask — integer
protected
- $cache_folderModTime — int
Methods
public
- fixfiles() — Cleanup function to reset all the Filename fields. Visit File/fixfiles to call.
- folderModTime() — Return the most recent modification time of anything in the folder.
- isAbsolute() — Returns true if the given filename is an absolute file reference.
- makeFolder() — Create a folder on the filesystem, recursively.
- removeFolder() — Remove a directory and all subdirectories and files.
- remove_folder_if_empty() — Remove a directory, but only if it is empty.