-
Notifications
You must be signed in to change notification settings - Fork 606
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
exists
method for storage/bucket#file ?
#914
Comments
We don't have an exists method (yet/something like it/maybe) but this is what it would do: file.getMetadata(function(err) {
if (err.code === 404) {
// doesn't exist
}
}); |
@stephenplusplus thanks! btw I think this should be added to the document or added as a method. |
I'm +1 for adding this as a method.....
|
I think |
|
great! 发送自 Outlook On Tue, Nov 17, 2015 at 11:16 AM -0800, "Stephen Sawchuk" notifications@github.com wrote: Closed #914. — |
Currently I can't find a method to check if a file is already existed in the bucket.
The text was updated successfully, but these errors were encountered: