[linux-sunxi] Re: [PATCH v5 6/9] sunxi-tools: Add file_size() and factor out a reusable file_upload()

2015-12-15 Thread Siarhei Siamashka
On Mon, 7 Dec 2015 12:03:41 +0100 Bernhard Nortmann wrote: > Am 30.11.2015 um 12:30 schrieb Siarhei Siamashka: > > What if "name" is, for example, a directory instead of a file? > > > > [...] > > If the file does not exist, what is the "sunxi-fel" tool supposed to do? >

[linux-sunxi] Re: [PATCH v5 6/9] sunxi-tools: Add file_size() and factor out a reusable file_upload()

2015-12-07 Thread Bernhard Nortmann
Am 30.11.2015 um 12:30 schrieb Siarhei Siamashka: What if "name" is, for example, a directory instead of a file? [...] If the file does not exist, what is the "sunxi-fel" tool supposed to do? Do we want to silently ignore this? Agreed. That was too much on the "quick and dirty side". I've

[linux-sunxi] Re: [PATCH v5 6/9] sunxi-tools: Add file_size() and factor out a reusable file_upload()

2015-11-30 Thread Siarhei Siamashka
On Fri, 27 Nov 2015 15:35:22 +0100 Bernhard Nortmann wrote: > This patch moves some code out of the "write" handler with the > intention to reuse it later for similar commands. > > At the same time, it also discards the previous transfer rate output > when using "-v",