t3rm1n4l / megacmd

A command-line client for mega.co.nz storage service
456 stars 74 forks source link

Uploading empty file #21

Closed aminehmida closed 11 years ago

aminehmida commented 11 years ago

When I try to upload an empty file it just stop with 0% progress. is it supposed to do that ?

t3rm1n4l commented 11 years ago

yes. default behavior.

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Fri, Nov 1, 2013 at 2:52 AM, Amine Hmida notifications@github.comwrote:

When I try to upload an empty file it just stop with 0% progress. is it supposed to do that ?

— Reply to this email directly or view it on GitHubhttps://github.com/t3rm1n4l/megacmd/issues/21 .

aminehmida commented 11 years ago

So, when syncing a local folder with mega remote folder, is it possible to skip those empty files or create them with an empty content (preferred option)?

On Fri, Nov 1, 2013 at 3:56 AM, Sarath Lakshman notifications@github.comwrote:

yes. default behavior.

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Fri, Nov 1, 2013 at 2:52 AM, Amine Hmida notifications@github.comwrote:

When I try to upload an empty file it just stop with 0% progress. is it supposed to do that ?

— Reply to this email directly or view it on GitHub< https://github.com/t3rm1n4l/megacmd/issues/21> .

— Reply to this email directly or view it on GitHubhttps://github.com/t3rm1n4l/megacmd/issues/21#issuecomment-27544894 .

t3rm1n4l commented 11 years ago

i think if you use --force, it will create

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Fri, Nov 1, 2013 at 12:14 PM, Amine Hmida notifications@github.comwrote:

So, when syncing a local folder with mega remote folder, is it possible to skip those empty files or create them with an empty content (preferred option)?

On Fri, Nov 1, 2013 at 3:56 AM, Sarath Lakshman notifications@github.comwrote:

yes. default behavior.

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Fri, Nov 1, 2013 at 2:52 AM, Amine Hmida notifications@github.comwrote:

When I try to upload an empty file it just stop with 0% progress. is it supposed to do that ?

— Reply to this email directly or view it on GitHub< https://github.com/t3rm1n4l/megacmd/issues/21> .

— Reply to this email directly or view it on GitHub< https://github.com/t3rm1n4l/megacmd/issues/21#issuecomment-27544894> .

— Reply to this email directly or view it on GitHubhttps://github.com/t3rm1n4l/megacmd/issues/21#issuecomment-27550149 .

aminehmida commented 11 years ago

Nop, it is not working. I think that there is a problem in the go implementation of mega api.

On Fri, Nov 1, 2013 at 10:54 AM, Sarath Lakshman notifications@github.comwrote:

i think if you use --force, it will create

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Fri, Nov 1, 2013 at 12:14 PM, Amine Hmida notifications@github.comwrote:

So, when syncing a local folder with mega remote folder, is it possible to skip those empty files or create them with an empty content (preferred option)?

On Fri, Nov 1, 2013 at 3:56 AM, Sarath Lakshman < notifications@github.com>wrote:

yes. default behavior.

Happy Hacking, Sarath Lakshman http://www.sarathlakshman.com

On Fri, Nov 1, 2013 at 2:52 AM, Amine Hmida notifications@github.comwrote:

When I try to upload an empty file it just stop with 0% progress. is it supposed to do that ?

— Reply to this email directly or view it on GitHub< https://github.com/t3rm1n4l/megacmd/issues/21> .

— Reply to this email directly or view it on GitHub< https://github.com/t3rm1n4l/megacmd/issues/21#issuecomment-27544894> .

— Reply to this email directly or view it on GitHub< https://github.com/t3rm1n4l/megacmd/issues/21#issuecomment-27550149> .

— Reply to this email directly or view it on GitHubhttps://github.com/t3rm1n4l/megacmd/issues/21#issuecomment-27556001 .

t3rm1n4l commented 11 years ago

Fixed this issue. https://github.com/t3rm1n4l/go-mega/commit/7ff0bd6b8ad2886fb0b1b76c238a8daadd7f9c9e.

You can rebuild from latest source.