Codeception / Codeception/module-filesystem
Feature request: \Codeception\Module\Filesystem::writeToFile create a directory recursively.
- 主要語言
- PHP
- 星號
- 20
- 分支
- 7
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Scenario:
I want to create a file inside a folder:
`$I->writeToFile('/var/www/foo/foo.php', '');`
This will fail because the folder `foo` does not exist.
Now I have to create the folder recursively and keep track of it for deletion.
```
public function writeToFile($filename, $contents)
{
file_put_contents($filename, $contents);
}
```
This issue is a feature request to make that method more robust, using perhaps Symfony Filesystem to recursively create the directory. Eg: https://symfony.com/doc/current/components/filesystem.html#mkdir
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start at Codeception\Module\Filesystem::writeToFile and inspect the module's existing tests, if present. Verify that writing to a file in a missing nested directory succeeds and that existing behavior remains intact; completion should cover the recursive-directory scenario described in the issue.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- php
- 領域
- testing
- Issue 類型
- 功能
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100