Example #1
0
 /**
  * Destructor
  * 
  * Unlocks any locked file pointers and closes all filepointers
  * 
  * @access private 
  */
 function _File()
 {
     File::closeAll();
 }
Example #2
0
 /**
  * Generate the temporary ssh_askpass script
  *
  * @param string $password The password to use for login.
  *
  * @return void
  */
 protected function sshAskPass($password)
 {
     ($this->ssh_askpass_scripts =& File_Util::tmpFile()) . "";
     $askpass_data = 'echo ' . $password . ' < /dev/null';
     File::write($this->ssh_askpass_scripts, $askpass_data);
     File::closeAll();
     chmod($this->ssh_askpass_scripts, 0700);
 }
Example #3
0
 function tearDown()
 {
     File::closeAll();
     file_exists('test.txt') and unlink('test.txt');
 }
Example #4
0
 /**
  * Destructor
  *
  * Unlocks any locked file pointers and closes all filepointers
  *
  * @access private
  */
 public static function _File()
 {
     File::closeAll();
 }