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

how to get the date of torrent.files directly #1036

Closed
bluefchen opened this issue Feb 9, 2017 · 3 comments
Closed

how to get the date of torrent.files directly #1036

bluefchen opened this issue Feb 9, 2017 · 3 comments

Comments

@bluefchen
Copy link

@bluefchen bluefchen commented Feb 9, 2017

hi, does there is a way to get the date of torrent.files ? it seems that the api file.appendTo can not get the hole file date to a local variable
torrent.on('done', function(){
torrent.files.forEach(function(file){
// do something with file
var tempDate = file //the file is a object which can not get the file content directly
// i want to get the text format file content
})
})

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Feb 9, 2017

You mean like date of creation, modification, etc?

I don't think there such metadata available for the files accessible from the API.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Feb 9, 2017

You can get the torrent creation date with torrent.created, but torrents do not contain information about when individual files were created because a torrent is single unit. There is one date for the whole torrent.

@feross feross closed this Feb 9, 2017
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.