{"id":32197131,"url":"https://github.com/labster/p6-file-directory-tree","last_synced_at":"2026-02-19T23:01:10.641Z","repository":{"id":7948096,"uuid":"9342327","full_name":"labster/p6-file-directory-tree","owner":"labster","description":"Port of File::Path::Tiny to Perl 6 - create and delete directories","archived":false,"fork":false,"pushed_at":"2024-01-23T08:22:36.000Z","size":33,"stargazers_count":5,"open_issues_count":6,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-22T02:53:52.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2013-04-10T09:07:27.000Z","updated_at":"2025-04-18T11:42:43.000Z","dependencies_parsed_at":"2024-01-23T10:02:20.102Z","dependency_job_id":"d76e40a0-f2a2-40d9-8a46-f24d744c4cfa","html_url":"https://github.com/labster/p6-file-directory-tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/labster/p6-file-directory-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labster%2Fp6-file-directory-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labster%2Fp6-file-directory-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labster%2Fp6-file-directory-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labster%2Fp6-file-directory-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labster","download_url":"https://codeload.github.com/labster/p6-file-directory-tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labster%2Fp6-file-directory-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29636035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-22T02:51:52.881Z","updated_at":"2026-02-19T23:01:10.632Z","avatar_url":"https://github.com/labster.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"p6-file-directory-tree\n======================\n\n|last push to main|[![Linux Status](https://github.com/labster/p6-file-directory-tree/actions/workflows/Linux.yml/badge.svg?event=push)](https://github.com/labster/p6-file-directory-tree/actions)|[![MacOS Status](https://github.com/labster/p6-file-directory-tree/actions/workflows/MacOS.yml/badge.svg?event=push)](https://github.com/labster/p6-file-directory-tree/actions)|[![Windows Status](https://github.com/labster/p6-file-directory-tree/actions/workflows/Windows.yml/badge.svg?event=push)](https://github.com/labster/p6-file-directory-tree/actions) |\n|---|---|---|---| \n|scheduled health check|[![Linux Status](https://github.com/labster/p6-file-directory-tree/actions/workflows/Linux.yml/badge.svg?event=schedule)](https://github.com/labster/p6-file-directory-tree/actions)|[![MacOS Status](https://github.com/labster/p6-file-directory-tree/actions/workflows/MacOS.yml/badge.svg?event=schedule)](https://github.com/labster/p6-file-directory-tree/actions)|[![Windows Status](https://github.com/labster/p6-file-directory-tree/actions/workflows/Windows.yml/badge.svg?event=schedule)](https://github.com/labster/p6-file-directory-tree/actions)| \n\nRaku module to create and delete directory trees.\n\n\n## SYNOPSIS\n\n\tuse File::Directory::Tree;\n\n\t# make a new directory tree\n\tmktree \"foo/bar/baz/quux\";\n\t# delete what you just made\n\trmtree \"foo\";\n\t# clean up your /tmp -- but don't delete /tmp itself\n\tempty-directory \"/tmp\";\n\n\t\n## DESCRIPTION\n\nThis module provides recursive versions of mkdir and rmdir.  This might be useful for things like setting up a repo all at once.\n\n## FUNCTIONS\n\n#### mktree\nMakes a directory tree with the given path.  If any elements of the tree do not already exist, this will make new directories.\n\n\tsub mktree ($path, $mask = 0o777)\n\nAccepts an optional second argument, the permissions mask.  This is supplied to mkdir, and used for all of the directories it makes; the default is `777` (`a+rwx`).  It takes an integer, but you really should supply something in octal like 0o755 or :8('500').\n\nReturns True if successful.\n\n#### rmtree\nThis deletes all files under a directory tree with the given path before deleting the directory itself.  It will recursively call unlink and rmdir until everything under the path is deleted.\n\nReturns True if successful, and False if it cannot delete a file.\n\n#### empty-directory\nAlso deletes all items in a given directory, but leaves the directory itself intact.  After running this, the only thing in the path should be '.' and '..'.\n\nReturns True if successful, and False if it cannot delete a file.\n\n## TODO\n\n* Probably handle errors in the test file better\n\n## SEE ALSO\n\n* [IO::Path](https://docs.raku.org/type/IO::Path)\n* [File::Spec](https://github.com/FROGGS/p6-File-Spec) (now part of [IO::Spec](https://docs.raku.org/type/IO::Spec))\n\n## AUTHOR\n\nBrent \"Labster\" Laabs, 2013.\n\nContact the author at bslaabs@gmail.com or as labster on #perl6.  File [bug reports](https://github.com/labster/p6-IO-Path-More/issues) on github.\n\nBased loosely on code by written Daniel Muey in Perl 5's [File::Path::Tiny](http://search.cpan.org/~dmuey/File-Path-Tiny-0.5/lib/File/Path/Tiny.pod).\n\n## COPYRIGHT\n\nThis code is free software, licensed under the same terms as Perl 6; see the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabster%2Fp6-file-directory-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabster%2Fp6-file-directory-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabster%2Fp6-file-directory-tree/lists"}