-
Notifications
You must be signed in to change notification settings - Fork 200
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
Allow mount identifier, for MountManager of FlySystem library, into prefixes #325
base: master
Are you sure you want to change the base?
Conversation
@@ -111,6 +111,17 @@ public function __construct(FilesystemOperator $source, FilesystemOperator $cach | |||
$this->tempDir = sys_get_temp_dir(); | |||
} | |||
|
|||
private function trimPrefix(string $prefix): string | |||
{ | |||
if ('//' == substr($prefix, -2)) { |
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.
Why not check for '://' === substr($prefix, -3)
instead of having a separate check for :
?
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.
Can you respond to above query please.
A little push to allow mount identifier into path without set prefix. If i set a cache prefix ; the mount identifier is removed. Example: set cache prefix "cache://my/dir" and get "img://my/img.jpg" , the cache path will be "cache://my/dir/my/img/jpg" |
Any news? Thx |
Allow mount identifier, for MountManager of FlySystem library, into prefixes.