Skip to content

Script should check if target dir is writable #2

@kaamil1984

Description

@kaamil1984

Hi,

Script checks if target directory exists, but it does not check permission.

Maybe something like this could do the job?
(found here: https://stackoverflow.com/a/2113511/1215291 )

os.access('/path/to/folder', os.W_OK)

Thanks for sharing your script. It is pretty useful for learning Python. I'm tired of doing such things in pure bash :)

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