Skip to main content

Comments

2 comments

  • Fletcher Penney

    Correct -- a file with no extension has no UTI to tell the OS whether it is a text file or a non-text binary file.  Brute force examining the file to see if it "looks like" text is possible, but not particularly reliable and can cause difficulties if you accidentally edit a non-text binary file that happened to look like text.

     

    (Technically the UTI does exist, but it is "public.item"/"public.data", which is essentially meaningless and does not indicate whether a file is text or non-text)

     

    At this time, there are no plans to change this behavior due to the potential danger it could cause.

     

    Use file extensions.  That's what they're there for.  ;)

    0
  • Addison Lee

    Makes sense, thanks for the additional technical details.

    0

Please sign in to leave a comment.

Powered by Zendesk