Skip to content

Fix FTP explorer subdirectory file retrieval (issue #1155)#1281

Open
woldegab wants to merge 1 commit intomicrosoft:mainfrom
woldegab:main
Open

Fix FTP explorer subdirectory file retrieval (issue #1155)#1281
woldegab wants to merge 1 commit intomicrosoft:mainfrom
woldegab:main

Conversation

@woldegab
Copy link
Copy Markdown

Fixes #1155

The FTP explorer was unable to retrieve files from subdirectories due to two related bugs:

  1. roots built URIs with /// (triple slash), producing malformed paths like ///filename
  2. getContent used substr(2) as a workaround, which only worked for top-level files

Fix: use // in URI construction and substr(1) in getContent so subdirectory
paths like /pub/example/readme.txt resolve correctly.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ftpExplorer in tree-view-sample can only retrieve top level files

2 participants