the owncloud client on windows is not syncing files which names start with a dot, like .env, .gitignore, .whatever.
because those are “hidden” files.
while they do have not: the attribute ‘hidden’ enabled.
It’s not because Linux wrongfully handles all files starting with a . as hidden files without looking at their attributes, that the windows client should do so as well.
I don’t care on which OS the server is running.
I expect all non-hidden files - those that do not have their attribute ‘hidden’ enable - to be synced if i disable ‘sync hidden files’, and i expect them to show up in on the server without the need to enable ‘show hidden files’, cause they aren’t hidden at the first place.
for example files named ‘.env’, and ‘.gitignore’ do not get synced even if they are not hidden files (attributed ‘hidden’ is not set)
but if i enable “sync hidden files”, thsoe .env and .gitignore files get synced all of the sudden, but folders like ‘.git’ or files like ‘desktop.ini’ - that do have their hidden-attribute set - also get synced. which is unwanted
same on the server: files that have their ‘hidden’-attribute set are not shown, but also files that start with a . are not shown if you don’t enable “show hidden files”.
I expect a windows client to only look at the attributes of a file - same as folderoptions in windows does when you choose to show or hide ‘hidden files’. or like command-line command DIR or DIR /A:-H only shows non-hidden files (attribute ‘hidden’ is not set) independing of the filename starting with . or not. and DIR/A:H only shows files with the ‘hidden’-attribute set not caring if the filename starts with . or not.
aka: same as any other windows program does
the windows client looks at the attributed ‘hidden’ if this is set or not, and at the filename, whether or not it starts with a . (a dot) and sees both as ‘hidden’ files and doesn’t sync them if “sync hidden files” is not enabled in the settings.
install latest windows owncloud client,
create 4 files in a folder:
a. “visible.txt” that does not has its ‘hidden’-attribute set,
b. “hidden.txt” that does has that atttribute set,
c. “.visible” file that does not has that attribute set
d. “.hidden” that does has the attribute set
set the client to not sync hidden files and set up a folder sync for the above folder
only the first file gets synced, while both the 1st and the 3rd file should get synced according to their attributes.
- set the client to sync hidden files and all 4 get synced.
Operating system: arm64 armbian ubuntu v20
everything alse like in the docker-compose example file as shown in the documentation on the owncloud-site.
Client version: latest windows client 2.11
Operating system: windows
OS language: dutch
Installation path of client: shouldn’t matter - there are no spaces in the installation path and plenty of disk space avail.
the above should be clear - check steps to reproduce.
either make the client to correctly only look at the attributes of a file to mark a file as hidden or not.
or make an option avail to ignore seeing filenames starting with a dot (’.’) as hidden, but still see files with attribute ‘hidden’ enabled as hidden.
or make 2 options avail:
- sync hidden files with attributed ‘hidden’ set (windows style)
- sync hidden files which filenames start with . (linux style)
which can both be switched on or off in any combo.
(and tbh : do the same on serverside - windows users don’t care about linux idiotic behaviour of hidding all files that start with a . whether they have that hidden-attribute set or not)
and how can i set the current client to correctly sync .files (filenames starting wih a .) but not sync hidden files (attribute ‘hidden’ set)?