Forum Archive

Cant create a new file

[deleted]

When i try to add a new file it says cant create a new file. Please make sure you have entered valid file name

cvp

Temporary, you can always select all, copy and paste in another app, like notes, or a mail...
Just to be sure to keep your code.

cvp

Do you run Pythonista 3 and not trying to create/update a script in Pythonista 2 files?

bennr01

@dvtkrlbs changes are automatically saved (except when editing a read-only file like the standard lib). About creating a new file: have you entered a valid filename? If you did, what is the name you entered?

bennr01

@dvtkrlbs if you tap on the filename in above the text/script, does it show a button to change the name of the file (the button should appear to the right of the title). If there is one, the file is not write protected. If there is none or the filename is surrounded by (), you cant save the file, but can tap and hold the text, then choose "select all", then tap and hold the text again, this time choose "Copy" to copy the file content. Then you can create a new file and paste the content there.

bennr01

@dvtkrlbs sorry, i forgot that you also have that problem. In which folder are you trying to create the file? Have you tried to force-quit the app and then restart it?

dgelessus

Is your device jailbroken perhaps? I don't have experience with jailbreaking myself, but I've heard from @omz that some tools for "hiding" the jailbreak from apps can prevent Pythonista from creating files. (Pythonista works just fine on jailbroken devices without any "jailbreak hiding" tricks.)