-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted local-to-remote copy with folders (#308)
The local-to-remote copy was failing when trying to copy a folder with multiple files, as only the first file was actually tansferred. This commit solves this issue by modifying the `aiotarstream` module to deal with `tell` and `seek` operations, allowing to position the stream pointer in the correct position. In detail, two new classes have been implemented: - `TellableStreamWrapper`, which keeps track of the actual stream pointer position; - `SeekableStreamReaderWrapper`, which allows forward seek operations in a stream reader. Note that these classes are internal to the `aiotarstram` module, so nothing changes in the publicly exposed API.
- Loading branch information
1 parent
fd6274c
commit a492ae2
Showing
2 changed files
with
90 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters