Skip to content

Directory timestamps are not hashed #638

@mwaskom

Description

@mwaskom

When an interface input is a directory (I encountered this with DataSink; it may be specific to that interface), it is treated as a string and only the name is used to generate the hash. This is problematic when the contents of the directory, but not the directory name, change. I can't track down the root code that does the hashing, but I can only assume that there is an

if os.path.isfile(s):
    ... hash file info
else:
    ... hash name

somewhere. It should be easy to add a directory check onto this code, I just don't know where it is. I'm also not totally sure what the right behavior should be when the config option for hashing says to use file contents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions