TheDiscordian/ipfs-sync

Do less `files/rm` calls

TheDiscordian opened this issue · 1 comments

Currently when adding a directory files/rm is called for every file, in-case there's an overwrite. Instead we can just call files/rm -r once on the directory, which would ensure there'd be no collisions anyways.

This would cut down the HTTP calls done on large directories significantly.

Should probably check if the directory is empty before we remove it.