
Saving a web page results in htm file disappearing when deleting the accompanying folder
I use Firefox 95.0 on Windows 10 professional. Problem: save any webpage as test.htm "Web page, complete" and you get a file named test.htm and a folder named test_files. Good, this is what I want. When I delete the folder it deletes the file above the folder without my permission and vice versa. This is clearly wrong. I don't know if this is a bug in Windows or Firefox, but this is not how files and folders should behave.
Modified
Chosen solution
That is a Windows feature called 'connected files'.
- https://docs.microsoft.com/en-us/windows/win32/shell/manage
- https://docs.microsoft.com/en-us/windows/win32/shell/manage#connected-files
- https://superuser.com/questions/1440406/how-to-prevent-windows-file-explorer-from-automatically-linking-a-html-or-htm
Read this answer in context 👍 1
All Replies (3)
When you save a webpage like that, it creates a file and a folder of the same name. The file contains the 'script' that makes the page while the folder contains the elements of that page. Pictures and gifs for example. Both are needed.
Chosen Solution
That is a Windows feature called 'connected files'.
- https://docs.microsoft.com/en-us/windows/win32/shell/manage
- https://docs.microsoft.com/en-us/windows/win32/shell/manage#connected-files
- https://superuser.com/questions/1440406/how-to-prevent-windows-file-explorer-from-automatically-linking-a-html-or-htm
Modified
cor-el said
That is a Windows feature called 'connected files'.
- https://docs.microsoft.com/en-us/windows/win32/shell/manage
- https://docs.microsoft.com/en-us/windows/win32/shell/manage#connected-files
- https://superuser.com/questions/1440406/how-to-prevent-windows-file-explorer-from-automatically-linking-a-html-or-htm
Thank you. I renamed the folders, and that broke the connection. This allowed me to delete them. What a bizarre "feature". If I want files to remain together I simply put them in a folder together. The icon of these magic folders is the same, yet they behave completely different.