Skip to content

Cannot read properties of null (reading 'value') on file delete with drives mirror --live #40

@davetapley

Description

@davetapley

If I drives mirror --live, then delete a file in src, I get:

/home/dave/.nvm/versions/node/v18.15.0/lib/node_modules/drives/bin/mirror.js:230
  if (srcEntry.value.linkname || dstEntry.value.linkname) {
               ^

TypeError: Cannot read properties of null (reading 'value')
    at same (/home/dave/.nvm/versions/node/v18.15.0/lib/node_modules/drives/bin/mirror.js:230:16)
    at Command.cmd (/home/dave/.nvm/versions/node/v18.15.0/lib/node_modules/drives/bin/mirror.js:129:17)
    at async Command.parseAsync (/home/dave/.nvm/versions/node/v18.15.0/lib/node_modules/drives/node_modules/commander/lib/command.js:935:5)

Node.js v18.15.0

Additionally, if I restart drives mirror it will correctly append the deletion,
but any other drives mirror with that key as src will fail with the same error (but delete file in dest correctly upon restart).

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