Skip to content

Root no longer has a Link header with rel="type" to space:storage #4

Description

@bourgeoa

CommunitySolidServer/Recipes#53

This will solve the issue adding the missing triple to root/.meta files

# cd /mnt/volume_lon1_01

## count root/.meta files
# find solidcommunity.net/*/.meta -type f -name ".meta"  | wc -l

## list files that do contain `Storage`
# find solidcommunity.net/*/.meta -type f -name ".meta" -exec grep -L "Storage" {} ";" 

## run update
# find solidcommunity.net/*/.meta -type f -name ".meta" -exec grep -L "Storage" {} ";" -exec sed -i '$a <> a <http://www.w3.org/ns/pim/space#Storage>.' {} + | wc -l

explanation of run update

  • find root/.meta files
  • select .meta that do not have a Storage string content
  • append to each .meta the triple <> a <http://www.w3.org/ns/pim/space#Storage>.
    and print number of files appended

To test the run update script, run it twice on an existing pod folder.
find solidcommunity.net/xxxx/.meta ....

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions