Skip to content

mc_GenPath make (both parent and dir) modes fail when path includes double slashes #58

Description

@dankessler

@shijiaguo noticed this and brought it to my attention. It seems reproducible.

If you try running mc_GenPath in either 'makedir' or 'makeparentdir' modes, matlab will attempt to call its native mkdir function. However, if you pass it something with multiple file system delimiters (e.g. '/net//data4/test1/test2') it will fail. You can very simply replicate this with the following code bits

e.g. (assuming you have permissions to do all this)
mkdir('~/test1/test2/test3/test4') will work
mkdir('~/test1//test2/test3/test4') will not

Not sure of best solution. Maybe @mangstad has an idea?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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