Skip to content

pmv panicks when the source was the root directory #22

@sgryjp

Description

@sgryjp

Summary

pmv panicks when the source was the root directory.

Expected behavior

pmv try to move the root directory, instead of panicking.

Version

0.4.1

Steps to reproduce

  1. Execute pmv / .

Example output

$ pmv -n / .
thread 'main' panicked at 'assertion failed: !patterns.is_empty()', /Users/sgryjp/.cargo/.../pmv-0.4.1/src/walk.rs:44:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions