Skip to content

Commit

Permalink
Adding a sync fix to ensure non-filesystem files can be synced
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Jul 29, 2014
1 parent f91d8b6 commit 230bafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aws/S3/Sync/UploadSync.php
Expand Up @@ -38,7 +38,7 @@ protected function init()
protected function createTransferAction(\SplFileInfo $file)
{
// Open the file for reading
$filename = $file->getRealPath();
$filename = $file->getRealPath() ?: $file->getPathName();

if (!($resource = fopen($filename, 'r'))) {
// @codeCoverageIgnoreStart
Expand Down

0 comments on commit 230bafc

Please sign in to comment.