On Thursday, October 17, 2024 at 1:06:41 PM UTC-4 jkn wrote:

As a slight aside, if I had not edited the node bodies, would you have 
expected the directories to then be created upon a write? There seems to be 
some sort of cache logic going on, but I am a bit unsure.


One thing I know.  You have to save the outline to have the new @file 
saved.  At that time the directories should get created if they don't 
already exist. Nothing is going to get created before the file is saved the 
first time.  It doesn't need to have content, just to be saved. If you 
create an @path node but no file at the end of that path, Leo will see 
nothing to save and those directories aren't going to be created. I've just 
tested all these statements, BTW.

If you created @path nodes and @file nodes in them, but "Revert To Saved"  
before saving the outline, Leo will reload the outline as it was and will 
not create those directories and @files - since you had not saved them 
first.

This behavior makes sense to me.  When you save an outline, Leo looks for 
any and all at-files (or probably it's just all dirty at-file nodes) and 
saves them.  If it notices that there is one with non-existent directories, 
it knows it has to create them before that file can be saved.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/da5a428b-7d99-497a-842e-9305e511c79bn%40googlegroups.com.

Reply via email to