/**
  * @param boolean whether to keep the file after application termination or not
  */
 function __construct($keepAfterShutdown = false)
 {
     $this->path = FSUtils::getTempFilename(__CLASS__);
     $this->keepAfterShutdown = $keepAfterShutdown;
     if (!$keepAfterShutdown) {
         register_shutdown_function(array($this, 'unlink'));
     }
 }
 /**
  * @see CachePeer::clean()
  * @return FilesystemCachePeer
  */
 function clean()
 {
     FSUtils::cleanDirectory($this->directory);
     return $this;
 }