Problem with mkdir in windows


#1

Please describe what you are doing to trigger the bug:
Restore with
duplicacy restore -r 272

Please describe what you expect to happen (but doesn’t):
Restore should start

Please describe what actually happens (the wrong behaviour):
mkdir W:\Downloads\restoretest/.streams: Das System kann die angegebene Datei nicht finden.

“the system can not find the specified file”

duplicacy version is 2.1.1 CLI and win version is win 10 x64

I did some tests:

W:\Downloads\restoretest>mkdir .doof
--> worked
W:\Downloads\restoretest>mkdir .streams

–> failed

only .streams makes problems. I will try to ignore it

edit:
ignoring worked:
duplicacy.exe restore -r 272 -stats -threads 5 e:.streams e:.@__thumb


#2

.streams is used by SAMBA to store Alternate Data Streams, so normally you don’t have the permission to create this folder.


#3

If anyone has further knowledge in this: wouldn’t it be an idea to create an exclude list with all kindes of temp or system folders for the wiki?
Something like this?


#4

There’s one created by me in there: Scripts and utilities index


#5

Creating .streams works for me on win10:

C:\Users\crist\Desktop\aaaaaaDownloads>rmdir .streams

C:\Users\crist\Desktop\aaaaaaDownloads>dir
 Volume in drive C is
 Volume Serial Number is 7CE2-E383

 Directory of C:\Users\crist\Desktop\aaaaaaDownloads

19-Aug-18  00:39    <DIR>          .
19-Aug-18  00:39    <DIR>          ..
01-Jun-18  21:07    <DIR>          free code camp
               0 File(s)              0 bytes
               3 Dir(s)  293,414,518,784 bytes free

C:\Users\crist\Desktop\aaaaaaDownloads>mkdir .streams

C:\Users\crist\Desktop\aaaaaaDownloads>dir
 Volume in drive C is
 Volume Serial Number is 7CE2-E383

 Directory of C:\Users\crist\Desktop\aaaaaaDownloads

19-Aug-18  00:39    <DIR>          .
19-Aug-18  00:39    <DIR>          ..
19-Aug-18  00:39    <DIR>          .streams
01-Jun-18  21:07    <DIR>          free code camp
               0 File(s)              0 bytes
               4 Dir(s)  293,414,518,784 bytes free

C:\Users\crist\Desktop\aaaaaaDownloads>rmdir .streams

C:\Users\crist\Desktop\aaaaaaDownloads>dir
 Volume in drive C is
 Volume Serial Number is 7CE2-E383

 Directory of C:\Users\crist\Desktop\aaaaaaDownloads

19-Aug-18  00:40    <DIR>          .
19-Aug-18  00:40    <DIR>          ..
01-Jun-18  21:07    <DIR>          free code camp
               0 File(s)              0 bytes
               3 Dir(s)  293,413,568,512 bytes free

C:\Users\crist\Desktop\aaaaaaDownloads>

#6

Did you try creating .streams on a SAMBA directory?


#7

yep, and it still works:

Z:\>mkdir .streams

Z:\>dir
 Volume in drive Z is patrunjel
 Volume Serial Number is A34D-C853

 Directory of Z:\

30-May-18  18:09    <DIR>          .
04-Oct-18  20:10    <DIR>          .streams
26-Sep-18  20:37    <DIR>          Patrunjel
               0 File(s)              0 bytes
               3 Dir(s)  378,475,249,664 bytes free

Z:\>rmdir .streams

Z:\>dir
 Volume in drive Z is patrunjel
 Volume Serial Number is A34D-C853

 Directory of Z:\

30-May-18  18:09    <DIR>          .
26-Sep-18  20:37    <DIR>          Patrunjel
               0 File(s)              0 bytes
               2 Dir(s)  378,475,249,664 bytes free

And this is the drive (it’s a drive attached to an asus router and mounted under drive z:)

And straight using UNC (in powershell, coz apparently cmd doesn’t know to use unc paths):

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\crist> cd \\asus\patrunjel
PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> dir


    Directory: \\asus\patrunjel


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        26-Sep-18     20:37                Patrunjel


PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> mkdir .streams


    Directory: \\asus\patrunjel


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        04-Oct-18     20:14                .streams


PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> dir


    Directory: \\asus\patrunjel


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        04-Oct-18     20:14                .streams
d-----        26-Sep-18     20:37                Patrunjel


PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> mkdir .STREAMS
mkdir : An item with the specified name \\asus\patrunjel\.STREAMS already exists.
At line:1 char:1
+ mkdir .STREAMS
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (\\asus\patrunjel\.STREAMS:String) [New-Item], IOException
    + FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.NewItemCommand

PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> rmdir .streams
PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> dir


    Directory: \\asus\patrunjel


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        26-Sep-18     20:37                Patrunjel


PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> mkdir .STREAMS


    Directory: \\asus\patrunjel


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        04-Oct-18     20:15                .STREAMS


PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> dir


    Directory: \\asus\patrunjel


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        04-Oct-18     20:15                .STREAMS
d-----        26-Sep-18     20:37                Patrunjel


PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel> rmdir .STREAMS
PS Microsoft.PowerShell.Core\FileSystem::\\asus\patrunjel>