Rather than a file and similarly named directory for attachments, why not create an folder and place the notes txt and attachments in there ? This way you could also keep versions by simply incrementing the version number.
We are practically mirror-twins