rdmarsh / elm

A cli interface for extracting LogicMonitor data via the api
GNU General Public License v3.0
2 stars 1 forks source link

FileNotFoundError when dir doesn't exist #34

Open rdmarsh opened 1 year ago

rdmarsh commented 1 year ago

Describe the bug If you use the "-o file" to output to a file and the directory doesn't exist you'll get this error: FileNotFoundError: [Errno 2] No such file or directory:

To Reproduce Steps to reproduce the behavior:

  1. elm -o non_dir/file.out
  2. See error

Expected behavior An error saying the dir doesn't exist: non_dir/file.out: No such file or directory

Screenshots FileNotFoundError: [Errno 2] No such file or directory: 'non_dir/file.out'

Desktop (please complete the following information):