October\Rain\Assetic\Util\FilesystemUtils

Filesystem utilities.

Public methods

public static string createTemporaryFile(string $prefix)

Creates a temporary file.

Parameters
  • string $prefix - A prefix for the file name

public static string createThrowAwayDirectory(string $prefix)

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 $prefix - A prefix for the directory name

public static void getTemporaryDirectory()

public static void removeDirectory($directory)

Recursively removes a directory from the filesystem.

Parameters
  • $directory