Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError with long Cyrilic (potentially ASCII, too) filenames #27

Open
sithamet opened this issue Nov 13, 2021 · 1 comment
Open

Comments

@sithamet
Copy link

sithamet commented Nov 13, 2021

It appears that N2O throws FileNotFound when any of the files has a very long name (no specific limit found for now).

It leads to the situation where it's practically impossible to migrate large workspaces

Will update the issue as I'll be manually moving Notion export to N2O-acceptabke way

The error looks as follows

Traceback (most recent call last):
  File "C:\Users\vlasi\Desktop\N2O test\Notion-2-Obsidan-master\N2O.py", line 132, in <module>
    with open(newfilepath, append_write, encoding='utf-8') as tempFile:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\vlasi\\AppData\\Local\\Temp\\tmpyfr6_amn\\ZettelKasten\\Сюжетная идея для игры долго борются с большим и сложным противником, а потом вдруг противник повержен, и нет четкого врага. В этот момент, предложить много ситуаций, где много насилия и использования всей накопленной силы по инерции обернется плохими последствиями.md'
PS C:\Users\vlasi\Desktop\N2O test\Notion-2-Obsidan-master>
@sithamet sithamet changed the title FileNotFoundError with long Cyrilics filenames FileNotFoundError with long Cyrilic (potentially ASCII, too) filenames Nov 13, 2021
@jasonagriffis
Copy link

I'm receiving this error as well:
Traceback (most recent call last):
File "C:\Users\TronD\Documents\Notion-2-Obsidan\N2O.py", line 132, in
with open(newfilepath, append_write, encoding='utf-8') as tempFile:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\TronD\AppData\Local\Temp\tmp4r1ntapq\Hack The B 42c11\Research b4644\Getting St eba7c\Navigating ea941\Untitled D f9bd8\Simulates a fully-upgraded and up-to-date Active Directory network environment, which is hardened against attacks. It is aimed at experienced penetration testers and Red Teamers..md'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants