Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if directory exists before trying to create it #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liraelia
Copy link

@liraelia liraelia commented Nov 27, 2024

nextcloud returns Internal Server Error when trying to upload to directory that already exists
this checks if it exists and if it does it won't try to create it again and instead uses the existing one

‗‗‗‗‗‗‗‗‗‗
 CURL LOG
‾‾‾‾‾‾‾‾‾‾
CREATE DIR ERROR FOR "1.1.1"
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
        <s:exception>Internal Server Error</s:exception>
        <s:message>
                The server was unable to complete your request.         If this happens again, please send the technical details below to the server administrator.             More details can be found in the server log.                    </s:message>

        <s:technical-details>
                <s:remote-address>x.x.x.x</s:remote-address>
                <s:request-id>ia96ZqKXecFWX7c3jjWP</s:request-id>

                </s:technical-details>
</d:error>

@liraelia liraelia marked this pull request as ready for review November 27, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant