-
Notifications
You must be signed in to change notification settings - Fork 275
Description
I was using wclayer to import layers. It seems that if the target directory has a long path, wclayer does not work properly.
I was importing the base layer from microsoft/nanoserver. The layer can be downloaded from https://az896309.vo.msecnd.net/containers/microsoft/nanoserver:10.0.14393.447_en-us_full_spx2q06478MkUJl5hOPmCKDgYiXoSLt3. When I imported it with
.\wclayer.exe import -i .\nanoserver_10.0.14393.447_en-us_full_spx2q06478MkUJl5hOPmCKDgYiXoSLt3 C:\temp_short
the extracted folder has 1.13 GB. However, if I imported it with
.\wclayer.exe import -i .\nanoserver_10.0.14393.447_en-us_full_spx2q06478MkUJl5hOPmCKDgYiXoSLt3 C:\temp_long\abcdef\ghijklmn\opqrst\uvwxyz\abcd\efghijk\lmnopq\rst\uvwxyz\abcdefghijklmn\opqrstuvwxyz
the extracted folder has only 81.3 MB.
I have also tried to add long path prefix:
.\wclayer.exe import -i .\nanoserver_10.0.14393.447_en-us_full_spx2q06478MkUJl5hOPmCKDgYiXoSLt3 \\?\C:\temp_long\abcdef\ghijklmn\opqrst\uvwxyz\abcd\efghijk\lmnopq\rst\uvwxyz\abcdefghijklmn\opqrstuvwxyz
wclayer failed with mkdir \\?: The filename, directory name, or volume label syntax is incorrect., so I created the directory first and ran the command again. The extracted folder also has only 81.3 MB. Therefore, I suspect that if the target path is too long, some files get ignored during the import.