Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Get the current directory before create files/directories #249

Open
Pegasus8 opened this issue Jan 6, 2021 · 0 comments
Open

Get the current directory before create files/directories #249

Pegasus8 opened this issue Jan 6, 2021 · 0 comments
Labels
backend Something related with the backend enhancement New feature or request P2: High

Comments

@Pegasus8
Copy link
Owner

Pegasus8 commented Jan 6, 2021

This will avoid files and directories created outside the desired path by mistake. Usually, happens when you try to run the executable from outside, like /somefolder/piworker/piworker. That can be easily avoided by using os.Getwd()

@Pegasus8 Pegasus8 added enhancement New feature or request P2: High backend Something related with the backend labels Jan 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend Something related with the backend enhancement New feature or request P2: High
Projects
None yet
Development

No branches or pull requests

1 participant