-
Notifications
You must be signed in to change notification settings - Fork 174
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
PLAT-8408: Enable folder encryption #6547
Conversation
{ | ||
list ( $fileSync , $local ) = self::getReadyFileSyncForKey($key, $strict); | ||
if ($fileSync) | ||
return self::resolve($fileSync); |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
Reviewed |
No description provided.