Skip to content

Define file name with .env #16

Description

@htnabe

For now, I am considering using the following specifications for file loading.

  1. only one file can be loaded
  2. specify only the folder name from the .env file
  3. automatically read json files that exist in the specified folder name

Problem

With this method, if there are multiple json files in the specified folder, the intended file cannot be read. For example,

  • env file
    DATA_DIR=. /hoge

  • Directory structure
    /root
    ┣ /hoge
    ┃ ┣ a.json
    ┃ ┗ b.json
    ┗ .env

In such a case, it is not possible to explicitly set whether a.json or b.json is to be read.

Solution

As before, I will allow users to select not only specific folders but also multiple files.
This will enable the library to support the upload of multiple files while maintaining backward compatibility.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions