Skip to content

File does not exist error when filename contains # character #1358

Description

@codifyer

Description

I'm trying to move some files and delete some other files in sharepoint online site collection using cli. Where ever the filename contains # character I get an error that file does not exist.
It works fine for filenames that don't have # in them.

Steps to reproduce

  1. Upload a file with # in its name for e.g "test # document.docx"
  2. check for the file using spo file get [options]
o365 spo file get --webUrl https://mycompany.sharepoint.com/sites/site1 \
    --url "/sites/site1/Documents/WIP Docs/test # document.docx" 

Expected result

Should get meta data of the file.

Actual result

Error: The file /sites/site1/Documents/WIP Docs/test # document.docx does not exist.

Environment

OS: macOS Mojave Ver 10.14
o365 version: 2.6.0
shell: zsh 5.4.1 (x86_64-apple-darwin16.7.0)

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions