does @path ... @clean directory have to exist?

32 views
Skip to first unread message

jkn

unread,
Oct 1, 2024, 7:02:29 PM10/1/24
to leo-editor
I was going to write a question about how to determine the path of a node under an @path node, since for this is not behaving as I'd expect...

... but whilst trying to create the simplest example, I was reminder that there must be something about the @path & @file (specifically @clean in this case) facility that I don't understand.

To encapsulate this parts of my question ... does the directory (as given by an @path node(s), and child @clean nodes, have to exist, before the file contents are written?

I always thought that the directory was created if it didn't exist ... but now I am not so sure.

Thanks, J^n

Thomas Passin

unread,
Oct 1, 2024, 7:12:28 PM10/1/24
to leo-editor
I think there is a setting (of course!) to say whether Leo should create missing paths. [Checks settings outline].  Yes, here it is:

@bool create_nonexistent_directories = True

jkn

unread,
Oct 2, 2024, 3:55:45 AM10/2/24
to leo-editor
Ah, thanks Thomas.
    The docs were not clear (to me). I wonder if I had that setting enabled in a previous setup, and that is why I had a memory of it working differently.

I think the error message might be a bit clearer; I will try to look into that.

    Regards
    J^n
Reply all
Reply to author
Forward
0 new messages