TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
7.98k stars 1.18k forks source link

[BUG] TiddlyWiki Init Does Not Respect the File Attributes #8576

Closed kookma closed 1 week ago

kookma commented 2 weeks ago

Describe the bug

As discussed here https://talk.tiddlywiki.org/t/tiddlywiki-init-does-not-respect-the-file-attributes/10537/2

When creating a new wikifolder using

tiddlywiki mywiki --init myedition

TiddlyWiki copies the myedition into mywiki, BUT it does not respect the file attributes. For example myedition folder has two hidden files ( desktop.ini, myfolder.ico these are hidden files, normally used on Windows to customize the appearance of folder and created by Windows), but mywiki has the same files with the hidden attribute removed!

Expected behavior

TiddlyWiki should respect the file attributes and does not change their properties.

TiddlyWiki Configuration

Jermolene commented 1 week ago

Hi @kookma I understand the frustration but this would be hard to fix. Hidden files are specific to the Windows platform, and as far as I can tell there is no support for working with them in Node.js.

kookma commented 1 week ago

Thank you for clarification. I close the issue as I understood --init onlyl copy the whole edition directory. So, on Windows 8,10, and 11 this can be addressed using robocopy instead of tiddlywiki mywiki --init server

Robocopy $editionFullName $wikiName /E /COPY:DAT > $null