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

MountManager does not transfer configs other than visibility when copying across filesystems #1769

Open
franksl opened this issue Mar 14, 2024 · 0 comments

Comments

@franksl
Copy link

franksl commented Mar 14, 2024

Hello,
I need to use the MountManager to copy a file from a local fs to an s3 fs by adding some s3 headers to the file inside the config array (ie. ContentType, ContentEncoding, etc).
When trying to do something like this:

$mm->copy(
    "localfs://myfile.bin",
   "s3fs://path/to/myfile.bin",
    [
        'ContentType' => 'xxx/vvv'
    ]
);

the ContentType property is not written to the destination fs.
I think this is due to the copyAcrossFilesystem() method that deals only with the visibility flag, while I do not see any problems in passing other options.
Thanks,
Frank

@franksl franksl changed the title MountManager keeps visibility only when copying across filesystems MountManager does not transfer configs other than visibility when copying across filesystems Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant