-
Notifications
You must be signed in to change notification settings - Fork 653
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
After uploading a file with a specific destination, containing the subfolder name, I am not able to get the File object of this subfolder with Bucket.GetFiles().
However, if I look at the console, the folder is successfully created.
test/ is a folder create through the console, testSubFolder/ is created through google-cloud-node upload.
I uploaded the same file in each folder, and after a GetFiles(), here what I get :
// ...
metadata:
{ kind: 'storage#object',
id: 'xxxx/folder1/test//1473177306575000',
selfLink: 'https://www.googleapis.com/storage/v1/b/xxxx/o/folder1%2Ftest%2F',
name: 'folder1/test/',
// ...
metadata:
{ kind: 'storage#object',
id: 'xxxx/folder1/test/320x50.jpg/1473178787694000',
selfLink: 'https://www.googleapis.com/storage/v1/b/xxxx/o/folder1%2Ftest%2F320x50.jpg',
name: 'folder1/test/320x50.jpg',
// ...
metadata:
{ kind: 'storage#object',
id: 'xxxx/folder1/testSubFolder/320x50.jpg/1473178527390000',
selfLink: 'https://www.googleapis.com/storage/v1/b/xxxx/o/folder1%2FtestSubFolder%2F320x50.jpg',
name: 'folder1/testSubFolder/320x50.jpg',
the File object of folder1/testSubFolder/ is missing.
If I upload (with google-cloud-node) an emptyFile with a name ended by /, it successfully create a folder, and I can get its File object.
Environment details
- OS: ubuntu 14.04 LTS
- Node.js version: v6.2.0
- npm version: 3.8.9
- google-cloud-node version: 0.36.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
