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

API /files/stat doesn't have any dates #246

Closed
pyhedgehog opened this issue May 30, 2016 · 7 comments
Closed

API /files/stat doesn't have any dates #246

pyhedgehog opened this issue May 30, 2016 · 7 comments

Comments

@pyhedgehog
Copy link

It's assumed to have "ctime", "mtime" or something alike (i.e. "version" or "revision") in return of file stat() function.

@pyhedgehog
Copy link
Author

Also "size" will be good - to choose between "readFile" and "createReadStream" API.

@Marak
Copy link
Collaborator

Marak commented Jun 1, 2016

Noted. Thank you.

If you find other files API related issues, you can try look https://github.com/bigcompany/hook.io-vfs

@Marak
Copy link
Collaborator

Marak commented Jun 1, 2016

Files API should return Vinyl object such as https://github.com/gulpjs/vinyl

Do you know this library?

@Marak
Copy link
Collaborator

Marak commented Jun 1, 2016

Vinyl should have all properties we need. If anything, maybe small issues inhook.io-vfs mapping to Vinyl.

@Marak
Copy link
Collaborator

Marak commented Oct 17, 2017

I've added more metadata to stat API.

You can try something like: https://hook.io/files/stat?path=a.txt

Please let me know what other properties you'd like to see.

@Marak
Copy link
Collaborator

Marak commented Oct 17, 2017

cc @pyhedgehog

@Marak
Copy link
Collaborator

Marak commented Dec 12, 2017

Closing since it should be resolved

Example stat object looks like this:

{
  "size": 3,
  "atime": "2017-12-12T14:08:49.320Z",
  "ctime": "2017-08-22T21:05:19.999Z",
  "mtime": "2017-08-22T21:05:19.999Z"
}

Please let us know if you have any additional feedback.

@Marak Marak closed this as completed Dec 12, 2017
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

2 participants