티스토리 뷰

windows 에서 rglob 을 통해 파일(*.ext)을 읽어들이면 파일 확장자에 insensitive해서 대문자 (*.EXT) 든 소문자(*.ext)든 알아서 잘 읽는다.

linux 계열에서는 rglob을 통해 파일을 읽어들일때는 파일 확장자에 sensitive 하다. 그래서, 대문자, 소문자 둘다 읽어들이려면 별도의 후처리가 필요하다. 삽질을 안하려면 대문자, 소문자를 통일 시켜줄 필요가 있다.

 

아 근데 이건 rglob 에 국한된 건 아니고 glob.glob 도 마찬가지 일거 같고, 여타 파일 읽기/쓰기가 필요한 모든 코드에 적용되는 사항같다.

 

https://superuser.com/questions/862270/convention-for-file-extensions-uppercase-or-lowercase

 

Convention for file extensions: uppercase or lowercase

Is there a convention for the case of the file extension in Windows, i.e. all uppercase vs. all lowercase? If there is, what is the reason, if any, for the convention, or is it just for the purpos...

superuser.com

 

https://superuser.com/questions/881804/case-sensitive-file-extensions-in-windows-and-linux

 

Case sensitive file extensions in Windows and Linux

In linux you can have the files example.JPG and example.jpg in the same directory. In Windows you have case sensitive extensions, but you can't put these two files in the same directory. Why not?

superuser.com

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함