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

Handle long path or filename problem #4

Open
fno2010 opened this issue Aug 26, 2016 · 3 comments
Open

Handle long path or filename problem #4

fno2010 opened this issue Aug 26, 2016 · 3 comments

Comments

@fno2010
Copy link
Collaborator

fno2010 commented Aug 26, 2016

The older Windows version may have limited length of path and filename for NTFS. Windows 7 cannot support the length of path and filename exceeds 260 chars. Trying to proceed long path will lead to issue #3.

To handle this problem, there are several potential solutions:

  1. Use UUIDs to store the path and link them to items in the DataBase. (Unreadable but maintainable)
  2. Force to cut long filename. (Maybe readable)
  3. Extract keywords and regenerate filename automatically. (Readable but hard to implement)
@VijayQin
Copy link
Owner

OK, I test the path limit practically, and I get the limit is 247.
And I had fixed this problem by the solution 2.
3 is better. Maybe it will appear in the later version

@fno2010
Copy link
Collaborator Author

fno2010 commented Aug 26, 2016

Sure. We can talk about this problem later. Actually I don't think No.2 is a good solution. Some keywords in the title may be cut and make it unfriendly to read.

Personally I prefer No.1 and No.3:

  • No.1 is a really maintainable solution. Many package and repo managers are using this solution.
  • No.3 is related to Smart Filter functionality. And I think we will touch its technical details in the near future.

@VijayQin
Copy link
Owner

Yep~No.3 is relate to our ultimate goal.
Dealing with it will be an import step definitely.

@VijayQin VijayQin reopened this Aug 26, 2016
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