Did you mean the setting @bool create_nonexistent_directories = True? I
don't remember ever creating a directory without an @file at the end of it.
You need to have a node for a file (it doesn't need to have any content)
and save the outline before Leo will create the directory(s). Leo will
create the entire tree of directories. For example:
@path c:/temp/test-leo-directory/nested-1
@clean leo-directory-test.txt
On Thursday, October 17, 2024 at 6:05:32 AM UTC-4 Israel Hands wrote:
And indeed it does. First it labels the new directory with */Directory/* -
saving the outline doesn't create it. But adding a file node with @file or
@auto created both file and directory. Is there a reason why creating
directories directly in path without any file contents would be a bad thing?
ta
IH
On Thursday 17 October 2024 at 10:56:55 UTC+1 Israel Hands wrote:
I've just noticed a similar ish question just a few lines below mine, sorry
for not noticing that. If I enable the create missing directories will all
my troubles be gone. I'm going to try now.
On Thursday 17 October 2024 at 10:53:45 UTC+1 Israel Hands wrote:
I use path to create the directory node - fine. However Leo will not create
the directory in the file system until a file is created within the
directory.
So I could create the directory and file in the file system but that isn't
as neat as making Leo do the work.
So I create an @auto node in the as yet uncreated (in the file system)
directory node and Leo complains when I try to save the outline because it
can't save the @auto file because the directory doesn't exist.
If I use the write file from node command - it offers the system file
requester which of course does not yet have the directory created in it.....
I feel I may be missing the bleeding obvious here!
Ta
IH
--
You received this message because you are subscribed to the Google Groups
"leo-editor" 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/leo-editor/92ebc41c-ff64-4237-b18f-c592188cffe0n%40googlegroups.com.