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

Standarize fsspec file access #397

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

PhilippeMoussalli
Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli commented Aug 30, 2023

PR that standarizes ffspec file access to use the Abstractfilesystem class for all filesystem related functionalities.

Previously we were using the Abstractfilesystem and custom functions fs_open() to read/write/list the manifest(s). This caused some issue since fs_open expects the protocol of the file system to be present in the URL. However, files returns by Abstractfilesystem().ls returned a normal file system url. When passed to fs_open() it causes it to fail to read the file properly.

Still some issues with using glob patterns. More details here: #368

Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

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

Thanks @PhilippeMoussalli!

Have you been able to test this with remote storage?

@PhilippeMoussalli
Copy link
Contributor Author

Thanks @PhilippeMoussalli!

Have you been able to test this with remote storage?

yes. Tested locally with a remote storage as base path

@PhilippeMoussalli PhilippeMoussalli merged commit ae89fd5 into main Aug 31, 2023
5 checks passed
@PhilippeMoussalli PhilippeMoussalli deleted the standarize-fsspec-file-access branch August 31, 2023 13:08
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
PR that standarizes ffspec file access to use the `Abstractfilesystem`
class for all filesystem related functionalities.

Previously we were using the `Abstractfilesystem` and custom functions
`fs_open()` to read/write/list the manifest(s). This caused some issue
since `fs_open` expects the protocol of the file system to be present in
the URL. However, files returns by `Abstractfilesystem().ls` returned a
normal file system url. When passed to `fs_open()` it causes it to fail
to read the file properly.

Still some issues with using glob patterns. More details here:
#368
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

Successfully merging this pull request may close these issues.

2 participants