Change line below in the notes.py/NotesNewCommand, before: directory = os.path.join(self.notes_dir, filename[0]) after: directory = os.path.join(self.notes_dir, *filename[:-1]) Just FYI users.