ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Assetic\Util\FilesystemUtils Class Reference

Filesystem utilities. More...

+ Collaboration diagram for Assetic\Util\FilesystemUtils:

Static Public Member Functions

static createThrowAwayDirectory ($prefix)
 Creates a throw-away directory. More...
 
static createTemporaryFile ($prefix)
 Creates a temporary file. More...
 
static getTemporaryDirectory ()
 

Detailed Description

Filesystem utilities.

Author
Kris Wallsmith kris..nosp@m.wall.nosp@m.smith.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 19 of file FilesystemUtils.php.

Member Function Documentation

◆ createTemporaryFile()

◆ createThrowAwayDirectory()

static Assetic\Util\FilesystemUtils::createThrowAwayDirectory (   $prefix)
static

Creates a throw-away directory.

This is not considered a "temporary" directory because it will not be automatically deleted at the end of the request or process. It must be deleted manually.

Parameters
string$prefixA prefix for the directory name
Returns
string The directory path

Definition at line 60 of file FilesystemUtils.php.

Referenced by Assetic\Filter\ReactJsxFilter\filterLoad(), Assetic\Filter\TypeScriptFilter\filterLoad(), Assetic\Filter\EmberPrecompileFilter\filterLoad(), and Assetic\Filter\HandlebarsFilter\filterLoad().

61  {
62  $directory = self::getTemporaryDirectory().DIRECTORY_SEPARATOR.uniqid('assetic_'.$prefix);
63  mkdir($directory);
64 
65  return $directory;
66  }
+ Here is the caller graph for this function:

◆ getTemporaryDirectory()

static Assetic\Util\FilesystemUtils::getTemporaryDirectory ( )
static

The documentation for this class was generated from the following file: