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
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 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
-
難度 2/5 1-3 小時 新手友好度 84/100
scanaislop/aislop#476 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
components-web-app/api-components-bundle#403 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
mollie/PrestaShop#1566 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
components-web-app/docs#193 ·
-
docs: add Python and PHP examples to docs/api.md可能已有人在做 @gaurika-analyst 今天認領。 未關閉documentation good first issue
難度 2/5 1-3 小時 新手友好度 85/100
djazairdev/wilayas#12 · 1 則留言 ·
維護者通常 1 天內回覆