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

Files and folders with trailing point in filename sync issue in Windows #154

Open
sespivak opened this issue Dec 18, 2016 · 3 comments
Open

Comments

@sespivak
Copy link

If filename ends with point, Windows creates file, but when sync client gets filename of that file or folder from OS, trailing point cutted. This is the reason of appear duplicates of folders when syncing clients over several OS's.

Example:
"Folder." on Linux server
"Folder" when synced on Windows
"Folder" with same content then uploads to Linux server

In result, Linux server has 2 folders with filenames "Folder" and "Folder." and same content.

If Windows clients considered as important, folders and files with trailing point shouldn't be created.
Or when syncing on Windows, filenames with and without trailing points should be considered as same.

@7omate
Copy link
Contributor

7omate commented Dec 19, 2016

Hi,
Uhm... Another very tricky problem.
Based on this doc we could properly handle names ending with a dot if we used UNC paths (\?\ABSOLUTE_PATH).

In the case of multi OS syncs this raises another question... Should we allow the handling of paths that contain forbidden windows characters (< > ? | / \ : " *) in Pydio knowing that such paths cannot be handled in windows but are fine in Unixes ?

It quickly becomes a mess in which we should error out both between client and server depending on which platform each is running... Then again for all other filenames it's just fine.

Did you try adding the pattern .*\. to the excluded file name in the sync task settings?

@sespivak
Copy link
Author

Did you try adding the pattern .*. to the excluded file name in the sync task settings?

No, I did not. If I exclude this files and folders, syncing will not produce duplicates. But:

  1. users expects that everything files and folders in repo are synced
  2. I can't change default settings for all of my windows users.
    It's still a problem for me.

@7omate
Copy link
Contributor

7omate commented Dec 19, 2016

  1. For instance, files with a leading dot are not synced
  2. a) To me the right solution would be to create a new type of workspace in Pydio "Windows compatible workspace" that would prevent the use of trailing dots in paths
    b) I'll look into the feasibility of excluding all paths with a trailing .
    c) I'll look into the feasibility of actually creating files with trailing . in Windows
    d) Did you consider the possibility of educating your non windows-users to not finish paths with a dot?

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

No branches or pull requests

2 participants