Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-8408: Enable folder encryption #6547

Merged

Conversation

david-winder-kaltura
Copy link
Contributor

No description provided.

{
list ( $fileSync , $local ) = self::getReadyFileSyncForKey($key, $strict);
if ($fileSync)
return self::resolve($fileSync);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return null if no fs

@@ -1653,4 +1653,11 @@ public static function getResolveLocalFileSyncForKey(FileSyncKey $key)
return self::resolve($fileSync);
}

public static function getResolveReadyFileSyncForKey(FileSyncKey $key , $strict = false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the resolve from the name


$fileSync = kFileSyncUtils::getResolveReadyFileSyncForKey($syncKey);

$filePath = $fileSync ? $fileSync->getFullPath() : null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to check if $fileSync more than once

@@ -120,8 +120,12 @@ public function execute()

$this->handleFileSyncRedirection($syncKey);

$filePath = kFileSyncUtils::getReadyLocalFilePathForKey($syncKey);

$fileSync = kFileSyncUtils::getResolveReadyFileSyncForKey($syncKey);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no fileSync then dieGracefuly.

@MosheMaorKaltura
Copy link
Collaborator

Reviewed

@david-winder-kaltura david-winder-kaltura merged commit 8e5ea5d into Mercury-13.10.0 Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants