Open mslw opened 1 year ago
Is the issue that empty directories remain at the locations that you provided as arguments?
If that is true, under which conditions would you like to see them removed? For Git it is perfectly fine to clone an empty repository. Here datalad-annex
would need to reliably distinguish between a repo that exists and is empty, and a repo that does not exist. This would need to be done independent of the particular special remote used (i.e. whether or not this is webdav).
Is the issue that empty directories remain at the locations that you provided as arguments?
In Sciebo. My main issue is that when given a sciebo path that would fall under my account but does not exist (not an empty folder, just no such directory), clone creates a new folder (in sciebo -- sciebo url / nonexistentdirectory
in my example did not exist before cloning, but got created by clone).
That the local outcome is an empty repo is secondary, although the behaviour I'd expect would be an error like "repository not found", "could not read from remote repository", or similar - like ones that I get when trying to git clone from a GitHub repo (or a local folder) that does not exist.
FTR this came out when debugging a failed clone due to misspelled url (that's why I started with letter casing in examples).
But these may in fact be non-issues, maybe my expectations are wrong - you can be the judge here.
I am starting with a dataset that was published to my Sciebo account (using
create-sibling-webdav
) under$BASEURL/test-20230524/CamelCaseDirectory"
(where base URL is the webdav url shown in Sciebo UI).First, I am cloning the dataset to a new location, without any issues:
Unexpected behavior occurs when using a bogus url (pointing to a directory that doesn't exist in Sciebo). Clone ends with OK and a warning, "You appear to have cloned an empty repository". The cloned dataset is a git repo with no commits.
The URLs are case-sensitive, the same happens when typing the url with (incorrect) lowercase:
And in the end my Sciebo folder contains
CamelCaseDirectory
(correctly created withcreate-sibling-webdav
), but alsononexistentdirectory
andcamelcasedirectory
which came into being during clone attempts.Is this an issue with server behavior or with DataLad behavior?