Skip to content

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

@codifyer

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)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions