afero icon indicating copy to clipboard operation
afero copied to clipboard

Set working directory for FS

Open bukowa opened this issue 5 years ago • 1 comments

Is it possible? If not, should it ?

bukowa avatar Aug 06 '20 20:08 bukowa

Agreed, since this security update (https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ), there is a need to set the root dir: The behavior of os.DirFS("") has changed. Previously, an empty root was treated equivalently to "/", so os.DirFS("").Open("tmp") would open the path "/tmp". This now returns an error.

Otherwise I get an error when trying to open file: stat tmp/errors_dk1.csv.zip: os: DirFS with empty root

dknz2008 avatar Dec 18 '22 20:12 dknz2008