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

[FIX] issue of case-sensitive file path in linux (unix base system) #74

Merged

Conversation

moaminsharifi
Copy link
Collaborator

@moaminsharifi moaminsharifi commented Jan 14, 2024

Issue description:

In Windows operating systems, file paths are not case-sensitive. On the other hand, Unix-based operating systems, such as Linux and macOS, are case-sensitive. This means that you must use the exact capitalization of the file path to access the file correctly.

*In Windows: You could open a file named "MyDocument.docx" using any of the following paths:

  • C:\Users\Documents\MyDocument.docx
  • c:\users\documents\mydocument.docx
  • C:\USERS\DOCUMENTS\MYDOCUMENT.DOCX

In Linux: If the file is actually named "MyDocument.docx" (with a capital "D"), you would only be able to open it using the path "/home/user/Documents/MyDocument.docx". Using "/home/user/documents/mydocument.docx" would not work, as the system would treat it as a different file.

Related:
#46 #34

Proposed method:

by using native php method ucwords at src/helpers.php in getCrudConfig function.
so it does n't matter user or USER for it and result always should be:

/CRUD/UserComponent.php

TODO:

  • check in linux os
  • check in docker (alpine)
  • check in windows os

@reziamini reziamini merged commit 7e131c0 into reziamini:master Jan 29, 2024
5 checks passed
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.

2 participants