Skip to content

Creating empty folders on hyper:// protocol has incorrect path resolution behaviour #88

Open
@DeltaF1

Description

@DeltaF1

Environment

Windows 10 64-bit
Agregore v1.0.0-29

Creating a new folder via the fetch interface creates a bunch of intermediate folders that seem to be relating to Agregore's installation location.

Steps to reproduce

  1. Create a new hyperdrive like so
fetch("hyper://folder-creation-bug", {method: "PUT"});
  1. Write an empty folder to that hyperdrive
fetch("hyper://folder-creation-bug/new-folder/", {method: "PUT"});
  1. Navigate to the hyperdrive in the browser view

Expected behaviour

An empty hyperdrive save for the folder "new-folder"

Actual behaviour

The hyperdrive contains a series of nested folders corresponding to agregore's install location before the newly created folder (e.g. hyper://folder-creation-bug/Users/Delta/AppData/Local/Programs/agregore-browser/new-folder/)
image

Additional details

PUTting a new file into an intermediary folder like so:

fetch("hyper://folder-creation-bug/new-folder/test.json", {method: "PUT", body: "{key: 'value', foo: ['bar']}"});

produces the expected results, and creates new-folder at the root level of the hyperdrive.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghyperhypercore-protocol relatedwindowsPrimarily happens on windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions