When writing or appending files using python inside vim, new files are not being created and existing files are not being changed. Creating and appending files in python script and atom text editor are working, it's only in vim where it doesn't work.
I'm guessing it could be a permission issue or a bad path but I've tried using an absolute path which didn't help.
Not sure where to look or where to change permission. I can add my .vimrc if needed or plugins.
Here is the python code - i use
try to show there is no input/output error:
from pathlib2 import Path p = Path('/Users/plutonium/Documents/Programs/Python/File') q = p / 'a.ext' try: with open(q,'w') as f: f.write('content') except IOError: print('I/O Error...') # no error finally: print('checked')