Closed fschoell closed 4 years ago
Same goes for hasData()
that won't work if the folders are mounted and already exist (but do not have any content).
Closing as this has been moved to github.com/dfuse-io/dfuse-eosio repository, sent you instructions on Telegram about how to port the PR to there.
It's common to have state and block folder mounted (for example when using ZFS). Using RemoveAll on the state folder will fail in that case as mounted ZFS filesystems cannot be deleted. This change removes the content of the state dir instead of the folder itself.