Hi David The tiddlywiki.files mechanism is primarily intended for extracting tiddlers out of existing libraries, without needing to modify those files. It’s a lossy process (because not all the files necessarily end up in tiddlers), and it isn’t generally possible to reconstruct the original files from the extracted tiddlers.
You may be interested in the source for the savewikifolder command which does what you’re trying to do but within TW5: https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/savewikifolder.js <https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/savewikifolder.js> Best wishes Jeremy. > On 22 Sep 2019, at 02:30, David Nebauer <[email protected]> wrote: > > I'm playing with a script that unpacks a single json plugin file to > individual tiddler files for installing under a node.js server. The script > would also create a plugin.info file and, if necessary, a tiddlywiki.files > file. (Note that TW is not involved in this process - the script acts > directly on the json file.) > > I am only using a subset of tiddlywiki.files functionality at the moment - > just the 'tiddlers' section with the 'file' and 'fields' fields. > > My question is this: is there any way of determining solely from the contents > of a tiddler whether its metadata should be provided via the tiddlywiki.files > file rather than the tiddler's own file? Another way to put that is: is there > an algorithm based on tiddler content that determines whether a tiddler's > metadata is provided via the tiddlywiki.files file rather than the tiddler's > own file? > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/a200fbdb-4bfe-4aee-81ec-5d70dae578ed%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/a200fbdb-4bfe-4aee-81ec-5d70dae578ed%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/529E866C-B373-4136-A794-3F668B776834%40gmail.com.

