Compressed hidden files are not hidden anymore when uncompressing on Windows












1















When I zip hidden files and folder and unzip on a Windows PC, they do not remain hidden. I tried to hide them with dot and also with the command chflags hidden.



Is there anything I can do? It happens only when sending Mac to Windows, Mac to Mac works fine.










share|improve this question





























    1















    When I zip hidden files and folder and unzip on a Windows PC, they do not remain hidden. I tried to hide them with dot and also with the command chflags hidden.



    Is there anything I can do? It happens only when sending Mac to Windows, Mac to Mac works fine.










    share|improve this question



























      1












      1








      1


      0






      When I zip hidden files and folder and unzip on a Windows PC, they do not remain hidden. I tried to hide them with dot and also with the command chflags hidden.



      Is there anything I can do? It happens only when sending Mac to Windows, Mac to Mac works fine.










      share|improve this question
















      When I zip hidden files and folder and unzip on a Windows PC, they do not remain hidden. I tried to hide them with dot and also with the command chflags hidden.



      Is there anything I can do? It happens only when sending Mac to Windows, Mac to Mac works fine.







      macos windows zip compression






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 20 at 13:38









      Nimesh Neema

      15.3k64176




      15.3k64176










      asked Jan 20 at 13:15









      TryingTryingTryingTrying

      84




      84






















          1 Answer
          1






          active

          oldest

          votes


















          2














          The filesystem running on macOS and Windows handles hidden files differently. The two approaches, i.e. prepending a dot . character to filename or using chflags hidden won't work as it will set the file as hidden on Mac and not on Windows.



          The filenames prepended with . will remain hidden on any UNIX/Linux system.





          You can hide files on Windows by getting properties on a file and checking the "hidden" box on the general tab. This will only hide a file if you don't change the default behavior of Windows Explorer to keep hidden files hidden.






          share|improve this answer


























          • Oh I see. Thank you Nimesh. Is there anything to keep these files hidden when unzipping on Windows?

            – TryingTrying
            Jan 20 at 13:52











          • @TryingTrying no there is not as I think zip files do not contain anything to mark a file as hidden except the file name for Unix.

            – Mark
            Jan 20 at 15:09











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "118"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f349112%2fcompressed-hidden-files-are-not-hidden-anymore-when-uncompressing-on-windows%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          The filesystem running on macOS and Windows handles hidden files differently. The two approaches, i.e. prepending a dot . character to filename or using chflags hidden won't work as it will set the file as hidden on Mac and not on Windows.



          The filenames prepended with . will remain hidden on any UNIX/Linux system.





          You can hide files on Windows by getting properties on a file and checking the "hidden" box on the general tab. This will only hide a file if you don't change the default behavior of Windows Explorer to keep hidden files hidden.






          share|improve this answer


























          • Oh I see. Thank you Nimesh. Is there anything to keep these files hidden when unzipping on Windows?

            – TryingTrying
            Jan 20 at 13:52











          • @TryingTrying no there is not as I think zip files do not contain anything to mark a file as hidden except the file name for Unix.

            – Mark
            Jan 20 at 15:09
















          2














          The filesystem running on macOS and Windows handles hidden files differently. The two approaches, i.e. prepending a dot . character to filename or using chflags hidden won't work as it will set the file as hidden on Mac and not on Windows.



          The filenames prepended with . will remain hidden on any UNIX/Linux system.





          You can hide files on Windows by getting properties on a file and checking the "hidden" box on the general tab. This will only hide a file if you don't change the default behavior of Windows Explorer to keep hidden files hidden.






          share|improve this answer


























          • Oh I see. Thank you Nimesh. Is there anything to keep these files hidden when unzipping on Windows?

            – TryingTrying
            Jan 20 at 13:52











          • @TryingTrying no there is not as I think zip files do not contain anything to mark a file as hidden except the file name for Unix.

            – Mark
            Jan 20 at 15:09














          2












          2








          2







          The filesystem running on macOS and Windows handles hidden files differently. The two approaches, i.e. prepending a dot . character to filename or using chflags hidden won't work as it will set the file as hidden on Mac and not on Windows.



          The filenames prepended with . will remain hidden on any UNIX/Linux system.





          You can hide files on Windows by getting properties on a file and checking the "hidden" box on the general tab. This will only hide a file if you don't change the default behavior of Windows Explorer to keep hidden files hidden.






          share|improve this answer















          The filesystem running on macOS and Windows handles hidden files differently. The two approaches, i.e. prepending a dot . character to filename or using chflags hidden won't work as it will set the file as hidden on Mac and not on Windows.



          The filenames prepended with . will remain hidden on any UNIX/Linux system.





          You can hide files on Windows by getting properties on a file and checking the "hidden" box on the general tab. This will only hide a file if you don't change the default behavior of Windows Explorer to keep hidden files hidden.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 20 at 14:11









          Steve Chambers

          14.8k21739




          14.8k21739










          answered Jan 20 at 13:48









          Nimesh NeemaNimesh Neema

          15.3k64176




          15.3k64176













          • Oh I see. Thank you Nimesh. Is there anything to keep these files hidden when unzipping on Windows?

            – TryingTrying
            Jan 20 at 13:52











          • @TryingTrying no there is not as I think zip files do not contain anything to mark a file as hidden except the file name for Unix.

            – Mark
            Jan 20 at 15:09



















          • Oh I see. Thank you Nimesh. Is there anything to keep these files hidden when unzipping on Windows?

            – TryingTrying
            Jan 20 at 13:52











          • @TryingTrying no there is not as I think zip files do not contain anything to mark a file as hidden except the file name for Unix.

            – Mark
            Jan 20 at 15:09

















          Oh I see. Thank you Nimesh. Is there anything to keep these files hidden when unzipping on Windows?

          – TryingTrying
          Jan 20 at 13:52





          Oh I see. Thank you Nimesh. Is there anything to keep these files hidden when unzipping on Windows?

          – TryingTrying
          Jan 20 at 13:52













          @TryingTrying no there is not as I think zip files do not contain anything to mark a file as hidden except the file name for Unix.

          – Mark
          Jan 20 at 15:09





          @TryingTrying no there is not as I think zip files do not contain anything to mark a file as hidden except the file name for Unix.

          – Mark
          Jan 20 at 15:09


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Different!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f349112%2fcompressed-hidden-files-are-not-hidden-anymore-when-uncompressing-on-windows%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith