Comments (3)
I think I fixed it.
// delete state file first
final stateFile = await StateFile.getStateFile(downloadsPath, model!);
await stateFile.delete();
// start download
await task.start();
from dtorrent_task.
what do you mean download the file twice? if you need to download it twice then you need to specify a different directory,
the bt.state
file is used to track progress of the download
from dtorrent_task.
ok, I'm just trying to make it "idiot proof". If someone downloads a file, then deletes that file, and then downloads it again, it won't download if the bt.state file is still there, so it's a bit confusing.
from dtorrent_task.
Related Issues (20)
- task.stop function does not stop the torrent at all
- update pub? missing exports HOT 3
- how get rid of print(), log(), dev.log() etc. HOT 3
- Use concurrency when possible
- Large torrents with large number of pieces cause an overflow HOT 8
- Parse magnet links HOT 1
- Doesn't work with flutter 3.19. Update packages. HOT 2
- Provide a way to create metainfo file ".torrent" file HOT 2
- Only one peer is connected at a time HOT 2
- Optimizing HOT 2
- high cpu usage
- progress and status are not updating HOT 15
- slow utp speed
- The problem arose when using the metadata obtained through the infohash for downloading. HOT 1
- add more tests and increase code coverage
- `reusePort` not supported for Windows.flutter HOT 5
- utp selectiveAck extension crashes sometimes HOT 1
- support webrtc peers
- Sequential download
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtorrent_task.