sandia-minimega / minimega

minimega
GNU General Public License v3.0
148 stars 67 forks source link

cc send fails when using wildcards #1480

Open jacdavi opened 1 year ago

jacdavi commented 1 year ago

Describe your environment

  1. minimega version: latest master
  2. Linux distro/version: Ubuntu 18.04
  3. Go compiler version: 1.18.4
  4. VM types: N/A

Describe the bug cc send commands fail when a wildcard is included (e.g., cc send *.txt.)

minimega:/tmp/minimega/minimega$ file list *.txt
host  | dir | name     | size | modified
ccc19 |     | tmp.txt  | 0    | 2022-09-23T20:27:32Z
ccc19 |     | tmp2.txt | 0    | 2022-09-23T20:27:35Z
minimega:/tmp/minimega/minimega$ cc send *.txt
Error (ccc19): unable to get file *.txt via the mesh: get *.txt: file not found

To Reproduce Steps to reproduce the behavior:

  1. Create multiple files in filepath with the same extension
  2. Start minimega and try to run cc send *.extensions

Expected behavior All files matching the wildcard should be sent without error.


Some more context here: https://github.com/sandia-minimega/minimega/pull/1472#issuecomment-1256642878