Skip to content

Cannot create archive of a directory with a period in its name #97

@eric-j-ason

Description

@eric-j-ason

If the directory contains a period, it is assumed to be a file, and archive creation is refused. Are directories with periods in their names looked down upon? There are several such directory names in a regular /etc.

The logic is here:

if splitFile(dir).ext.len > 0:
raise newException(
ZippyError,
"Error adding dir " & dir & " to tarball, appears to be a file?"
)

if splitFile(dir).ext.len > 0:
raise newException(
ZippyError,
"Error adding dir " & dir & " to archive, appears to be a file?"
)

Cheers!

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