Trying to create a new file with "touch"

I’m trying to dynamically create files through an app I’m developing, but without success.

I attempted to use ServerContainer's getUserFolder's touch method. Interestingly, it does not throw any exception even though the file is not created. it simply does not create the file and returns NULL.

I checked to see if it’s a case of folder permission and does not seem to be, as I chmod’ed 777 the whole data folder just to find out if it was the case.

I’m sharing here a fork of the “notestutorial” app with just a few changes trying to acomplish this:

This is where I learned about how files should be created. The branch above follows the instructed approach:

Thanks in advance!

1 Like

I am having exact same issue. Does anyone has any solution?