Skip to content

File paths containing spaces can be a problem with "sbase print FILEPATH" #1041

@mdmintz

Description

@mdmintz

File paths containing spaces can be a problem with sbase print FILEPATH.
Some commands such as sbase mkrec FILE.py will output the resulting file with sbase print FILEPATH, which may have issues if the filename contains spaces or a directory on the file path contains spaces. This can be easily fixed by putting quotes around the file path before calling sbase print FILE.

(This was discovered by running sbase mkrec new_file.py --url=wikipedia.org from a directory that contained spaces within the file path. When the result file was being outputted using sbase print PATH_WITH_SPACES/new_file.py, the path was being split into multiple arguments based on how many spaces it contained, which led to errors.)

Metadata

Metadata

Assignees

Labels

bugUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions