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

Inconsistent 'type' field returned on S3 provider when calling .info() #31

Open
grantcopley opened this issue Dec 4, 2022 · 0 comments

Comments

@grantcopley
Copy link
Contributor

When calling .info() on the Local or RAM provider, you are returned a 'type' which indicates if the path is a file or a directory.

var info = disk.info( "some_file.txt" );
expect( info.type ).toBe( "file" );

On the S3 provider though this fails because it is instead returning the Content-Type of the file, which in this case would be 'text/plain'.

Calling .info() should return consistent values for all providers.

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