Skip to content

Script doesn't work as expected with different directories #1

Open
@QuarkRobot

Description

@QuarkRobot

If you run the script from a location not the same as the input and output, the archive created has the name of all directories in the path.

Example
Create a folder called SCRIPTS and place it on the Desktop with the tar.py script inside.
Open Command Prompt and type:

c:\users\bob\desktop\SCRIPTS\tar.py -autoexec c:\users\bob\desktop\thing c:\users\bob\desktop\test

This works, however, the name of each directory is added to the archive as you can see in the screenshot. The final directory specified (IE test) should be the 1st.
output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions