Try printing the Str before you do anything with it to see what happens.

(Hint - the backslash character escapes characters in literal strings)

On Wed, Apr 2, 2025 at 8:47 PM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> Hi All,
>
> Windows Server 2025 (souped up W11)
>
> raku -v
> Welcome to RakudoΓäó v2025.02.
>
> I am trying to see if this directory exists:
>      \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1
>
> This is what raku .IO.d.Bool give me:
>     raku -e "say
> '\\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1'.IO.d.Bool;"
>     False
>
> But power shell says it does me:
>      powershell Test-Path
> \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup1
>      True
>
>  From \\192.168.240.10, (a Samba server), it also tells me the
> directory indeed does exist:
>
>     # ls -al /mnt/LinuxServer/Backup/MyDocsBackup
>     total 36
>     drwxrwsrwx. 5 public root 4096 Mar 31 18:37 .
>     drwxrwsrwx. 5 root   root 4096 Mar 19 17:16 ..
>     drwxrwsrwx. 4 public root 4096 Mar 31 18:37 backup1
>     drwxrwsrwx. 4 public root 4096 Mar 31 17:57 backup2
>     drwxrwsrwx. 4 public root 4096 Mar 31 17:47 backup3
>
>
> What am I doing wrong?
>
> Many thanks,
> -T
>
>
>

Reply via email to