Menu

#2377 GUI version -stl option different behaviour from command line

open
nobody
None
5
2023-01-03
2022-12-29
xkiter
No

With GREAT joy found out that the -stl option was finally made available in the GUI version.
Unfortunately it has a critical bug... when accounting for the "most recent file timestamp" includes the directories as well, differently from the command line version that correctly does not account for the directories timestamp.
Hope this bug is fixed in new version and both versions GUI and EXE work alike, considering only the timestamp of the files within the 7zip and not the timestamps of the directories.

Discussion

  • Igor Pavlov

    Igor Pavlov - 2022-12-29

    What exact command in command line you use for these tests?
    Show some example.
    Also write what result do you expect and what you have after command call.

     

    Last edit: Igor Pavlov 2022-12-29
  • xkiter

    xkiter - 2022-12-30

    Consider having:
    Test1 30/12/2022 (DIR)
    -(Inside DIR)- 7z.dll 15/07/2022
    -(Inside DIR)- 7z.sfx 15/07/2022
    7z.dll 15/07/2022
    7z.exe 15/07/2022

    ie, all files from 15/07/2022 and the directory holding some files being 30/11/2022
    if give command: 7z.exe a -stl -r test.7z .
    one ends up correctly with test.7z file with modified date 15/07/2022 (and inside it, the directory w/o date information, only the files)

    Using the GUI (7zFM.exe) and selecting same files and directory to 7zip into test2.7z, one ends up with test2.7z dated 30/12/2022 (and looking inside the 7z file, one sees the directory with the 30/12/2022 date).

     

    Last edit: xkiter 2022-12-30
  • Igor Pavlov

    Igor Pavlov - 2022-12-30

    *.* in 7-zip means name with dot in file name.
    use *:

    7z.exe a -stl test.7z *
    
     
  • xkiter

    xkiter - 2023-01-03

    Correct. If use *.* only considers the dates of the files but saves the information of which folder they are, if doing only * the folders dates are saved as well and the 7z date is the date of the "latest" folder. Problem is the GUI version... the GUI version only considers *and as such the 7z file made with the GUI manager always counts the folders dates and not the files only.

     
  • Igor Pavlov

    Igor Pavlov - 2023-01-03

    * includes FolderName and Folder.Name.
    *.* includes Folder.Name and doesn't include FolderName, because FolderName doesn't contain dot character, while mask requires dot character.
    7-Zip for *.* mask works same way in Linux and in WIndows.

     

    Last edit: Igor Pavlov 2023-01-03

Log in to post a comment.

MongoDB Logo MongoDB