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

Access to file timestamp #227

Closed
natezeevo opened this issue Apr 19, 2018 · 3 comments
Closed

Access to file timestamp #227

natezeevo opened this issue Apr 19, 2018 · 3 comments

Comments

@natezeevo
Copy link

I can see in the cache database that there is time_stamp for each file entry. Is it possible to access this?

@chrisben
Copy link
Owner

You must be talking about the hash of each filename that is used to store the cached file. It's not a timestamp.
You can retrieve this sha1 hash either by listing all cached file names within the cache folder using Cordova's FileSystem function, or you could also override the hash function ImgCache.overridables.hash to make it store the output hash into an array before returning, this way you will be able to keep track of those hashes if that's your interest.

@natezeevo
Copy link
Author

Yes, there is a hash of the filename, but there is also a time_stamp field. I am not sure if this is part of the Cordova FileTransfer function that is accessible though?

screen shot 2018-04-23 at 1 08 03 pm

@chrisben
Copy link
Owner

This must be some internal meta data stored by Cordova. You'll have more luck looking into its documentation.

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