Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding 'dot' child #293

Open
nataraj-hates-MS-for-stealing-github opened this issue Jul 15, 2024 · 0 comments
Open

Adding 'dot' child #293

nataraj-hates-MS-for-stealing-github opened this issue Jul 15, 2024 · 0 comments

Comments

@nataraj-hates-MS-for-stealing-github

Not sure it worth fixing, but still I will mention it.

There are rare cases when you need dot at the end of the path. Eg: cp -R /home/nataraj/. /mnt/my_home_backup will copy all files and dirs in my home forlder, including hidden one. If I omit the dot, the whole home folder will be copied.

but when I do $home=path($home).child('.') in Path::Tiny, the dot is omitted.

I do not know what logic about the dots is under the hood, but I guess when use explicitly want dot-child, we should allow it.

But still it is not an issue of great importance, it is quite rare, and can be easily worked around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant