/**
  * Finalize a file transfer between sources for the provided file.
  *
  * @param AssetFileModel $file The assetFileModel representing the file we're finalizing the transfer for.
  *
  * @return null
  */
 public function finalizeTransfer(AssetFileModel $file)
 {
     $this->deleteSourceFile($file->getPath());
 }
 /**
  * Get a file's system path.
  *
  * @param AssetFileModel $file
  *
  * @return string
  */
 private function _getFileSystemPath(AssetFileModel $file)
 {
     $fileSourceType = craft()->assetSources->getSourceTypeById($file->sourceId);
     return $this->getSourceFileSystemPath($fileSourceType) . $file->getPath();
 }
 /**
  * Get a file's Rackspace path.
  *
  * @param AssetFileModel $file
  *
  * @return string
  */
 private function _getRackspacePath(AssetFileModel $file)
 {
     return $this->_getPathPrefix() . $file->getPath();
 }
Esempio n. 4
0
 /**
  * Get a file's S3 path.
  *
  * @param AssetFileModel $file
  * @param                $settings The source settings to use.
  *
  * @return string
  */
 private function _getS3Path(AssetFileModel $file, $settings = null)
 {
     return $this->_getPathPrefix($settings) . $file->getPath();
 }