Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndré Stein <stivekx@gmail.com>2015-08-25 07:48:28 +0300
committerAndré Stein <stivekx@gmail.com>2015-08-25 07:48:28 +0300
commit0608a58c3bd1dbd8bd16c67cb6e5b2e516c24652 (patch)
tree7c26b2669da9100ed0380e6c3d239ec4bae78621 /lib
parentc1b5867b6b837b70349bd99f1b6e60c570117742 (diff)
Add torrent.path
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index c3a9cf4..c7c7521 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -99,6 +99,11 @@ Object.defineProperty(Torrent.prototype, 'timeRemaining', {
}
})
+// Torrent Path
+Object.defineProperty(Torrent.prototype, 'path', {
+ get: function () { return this._path; }
+})
+
// Bytes completed (excluding invalid data)
Object.defineProperty(Torrent.prototype, 'downloaded', {
get: function () {