Example #1
0
 /**
  * Writes to a file
  *
  * @param $path
  *
  * @param $content
  *
  * @return null
  */
 public static function Write($path, $content)
 {
     /**
      * Get path
      */
     $corrected_path = Path::Get($path);
     /**
      * If this file exists
      */
     if (file_exists($corrected_path)) {
         return null;
     }
     /**
      * Create dirs
      */
     File::CreateDirectories($path);
     /**
      * Write this file
      */
     File::WriteFile($path, $content);
 }