Why this extra ".dir" folder gets created during vlt checkout for some jcr:mimeType (like text/javascript) ?
Hi all,
I noticed that for certain files a corresponding ".dir" folder gets created on your local laptop when you perform vault checkout from CRX. Does anyone know why this ".dir" folder is getting created ? It happens to files with certain "jcr:mimeType".
For example:
C:\rohit> vlt co http://localhost:4502/crx/-/jcr:root/app/clientlib/js/validation.js .
This will create extra "validation.js.dir" folder on your local
Found that if the "jcr:content" has jcr:mimeType of "text/javascript" instead of "application/javascript" then this ".dir" folder is created. Then read on google that "text/javascript" will become obsolete so we should be using "application/javascript" as mimeType
Now I tried checkout of another font file with ".ttf" extension (fontawesome-webfont.ttf) having "jcr:mimeType" of "application/x-font-ttf" (seem like mimeType is correctly detected in CRX). For this also a ".dir" folder got created. If I change the mimeType to application/o
Question is:
1) Why is this ".dir" folder getting created for specific mimeType ? Does this affect anything ?
2) For ".ttf" extension which mime type should i use ? On google i got mixed answered (both application/octet-stream & application/x-font-ttf)
http://stackoverflow.com/questions/12660389/what-is-the-correct-mime-type-for-a-font-file
Thanks in advance.