Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More aggressively validate ambiguous file paths #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 24, 2018

  1. More aggressively validate ambiguous file paths

    Closes counsyl#52
    
    * Error on filepaths with trailing slash because they do not have a name
      and thus appear to be directories.
    * Add validation for bad paths to ``OBSFile``.
    * Warn if filesystem paths would not pass this validation (otherwise you
      have the possibility of something that works locally and not on OBS).
      This can be set to raise instead if you set
      ``stor.raise_on_ambiguous_filesystem_path`` to be True
    * Deprecate ``is_ambiguous()`` which didn't 100% serve the purpose we
      wanted anyways (since you can always tell when user means directory
      because of the user of ``copytree()`` and/or ``-r``)
    
    Sem-Ver: feature
    jtratner committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    4a498bf View commit details
    Browse the repository at this point in the history