Skip to content

Output overwrites the directory paths in wsl #60

@AlicedeSampaioKalkuhl

Description

@AlicedeSampaioKalkuhl

used:

  • wsl on windows 11
  • batdetect2 run via pip install batdetect2 after conda create -y --name batdetect2 python==3.10
  • .wav files on a mounted USB drive

I tried to run batdetect2 with an an absolute path while attending a python workshop by @nerc-esces and accidentally misspelled the path.
Following the run, only the false path was accessible through cd in the ubuntu subsystem and all other files and directories couldn't be acessessed. However, the files were still there on the windows system itself.

We think the issue is causeed by line 358/9 in detector_utils.py in def save_resuls_to_file.
The file.replace in clippy might be checking if the whole path defined as a string exists and then it gets overwritten.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions