Re: rename and unc

2025-04-11 Thread ToddAndMargo via perl6-users
On Apr 3, 2025, at 19:05, ToddAndMargo via perl6-users us...@perl.org> wrote: > On Thu, Apr 3, 2025 at 2:14 AM ToddAndMargo via perl6-users us...@perl.org > wrote: > > And another IO ffunctio that does ot work: > > RotateArchives: renaming directory >

Re: rename and unc

2025-04-11 Thread William Michels via perl6-users
From Raku's `rename` man-page: "Note: some renames will always fail, such as when the new name is on a different storage device. See also: move." https://docs.raku.org/routine/rename HTH, Bill. PS. If you want Raku code fitting a 'create-backup; unlink-original; copy-backup-to-original-locati

Re: rename and unc

2025-04-03 Thread ToddAndMargo via perl6-users
> On Thu, Apr 3, 2025 at 2:14 AM ToddAndMargo via perl6-users us...@perl.org > wrote: > > And another IO ffunctio that does ot work: > > RotateArchives: renaming directory > \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6 to > \\192.168.240.10\o

Re: rename and unc

2025-04-03 Thread yary
The first 3 characters of the error is telling you the problem C:\192 it's same as in another thread, use Q[\\192 ... instead of '\\192 ... , so that you preserve the backslashes. OR double each backslash- `192.168.240.10\\oldserver ... and then you can keep using variables as you normally

rename and unc

2025-04-02 Thread ToddAndMargo via perl6-users
And another IO ffunctio that does ot work: RotateArchives: renaming directory \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6 to \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup4 Failed to rename 'C:\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6' to 'C:\192.168.240.10\old