Feature request: \Codeception\Module\Filesystem::writeToFile create a directory recursively.
还没有人认领这个 Issue。
评估
调研方向
从 Codeception\Module\Filesystem::writeToFile 开始,检查模块现有的测试(如果有)。验证向缺失的嵌套目录中的文件写入能够成功,并且现有行为保持不变;完成时应覆盖 issue 中描述的递归目录场景。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- PHP
- 星标
- 20
- 派生
- 7
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeception/module-filesystem 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 35/100
Codeception/module-filesystem#25 · 3 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
Codeception/module-filesystem#8 · 6 条评论 ·
查看 Codeception/module-filesystem 的全部 Issue
相似的 Issue
-
status/awaiting_triage
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
WordPress/plugin-check#1486 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 88/100
az-digital/az_quickstart#6019 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
grokability/snipe-it#19688 ·
-
难度 2/5 1-3 小时 新手友好度 85/100