Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • zipfile replace capital letters to small

    hi all, i am trying to zip certain folders that contain csv files, for example File1.csv File2.csv etc, and they are all in the folder called Folder_of_csvs. When i run

    Code:
    zipfile Folder_of_csvs, saving(Folder_of_csvs.zip, replace)
    all files in the zipped folder are renamed into file1.csv file2.csv etc

    How to stop this? thank you
    Neko

  • #2
    This does not happen in my setup, which is
    Code:
    Stata/SE 15.1 for Mac (64-bit Intel)
    Revision 11 Jan 2018
    The capitalization is preserved, both within the ZIP archive and when the file is extracted from the ZIP archive.

    Comment


    • #3
      Nor does it happen in my setup which is:

      Code:
      Stata/MP 15.1 for Windows (64-bit x86-64)
      Revision 11 Jan 2018
      Running Windows 7.

      If Neko Novi is running on Windows, filenames are not case sensitive. On Mac systems, however, this could indeed cause difficulties.

      Comment


      • #4
        Thanks for answers, im using Stata SE 14.2 on Windows 7 Enterprise 64bit. Im not sure i understood the second answer, i need these zips for some other programs that are case sensitive so i really need to preserve original file names... Is there any solution for this?

        Thanks a lot!

        Comment


        • #5
          I think that point of the responses in #2 and #3 is that this seems to be somehow idiosyncratic to your installation. Perhaps you should contact Stata Technical Support about it.

          Comment


          • #6
            You don't tell us how you determine that the files within the ZIP archive are renamed. Perhaps the archive is created with upper/lower case file names, but the software you are using to read the ZIP archive is causing the problem.

            In my case I used Stata zipfile and unzipfile to create the archive and to unpack it.

            Have you tried using a full-featured ZIP archive utility to open (but not unpack) your archive to see what it tells you the compressed files are named within the archive? When my day job was on Windows, PKZIP was the utility of choice.

            Comment

            Working...
            X