When trying to create a directory recursively when there is no internet connection available, the call to create_directory runs in an endless loop.
The check call will fail, because of the recursive flag being true, another call to create_directory will be done that again runs into create_directory and so on:
When trying to create a directory recursively when there is no internet connection available, the call to create_directory runs in an endless loop. The check call will fail, because of the recursive flag being true, another call to create_directory will be done that again runs into create_directory and so on:
https://github.com/CloudPolis/webdav-client-cpp/blob/fafcb660a79ff34079e6063b5abb3e8d13aa84bd/sources/client.cpp#L595
By adding a check if the parent directory is unequal to the original directory this can be avoided: