Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
new file/project couldn't be created
-
Works.
No more crashes with complex images.
-
Shame on me, each line is a folder, that's why it is 96 bytes and unremovable 😢 because not empty
-
The .mlmodelc are not permitted for removal...
-
.mlmodelc is still a folder, one more time, shame on me...
1GB of temp files... -
In the text detection script, add
print(c_model_url)
Note the code d = '/private/var/mobile/Containers/Data/Application/C285FD04-6489-45E5-A6C5-D4A44D300BBC/tmp/'
Replace it in the little script here-under to clean /tmp folderimport os n = 0 s = 0 def loc_dirs(path): global n,s try: file_path = path os.chdir(file_path) filelist = os.listdir(file_path) for file in filelist: print(file) f_full = file_path + file if os.path.isdir(f_full): loc_dirs(path+file+'/') # explore it else: loc_size = os.path.getsize(f_full) n = n + 1 s = s + loc_size os.remove(f_full) os.rmdir(file_path) except Exception as e: print('exception: ',e) return d = '/private/var/mobile/Containers/Data/Application/C285FD04-6489-45E5-A6C5-D4A44D300BBC/tmp/' #loc_dirs(d) print(n,s)
-
print(n,s)
3637 2027261814
-
@pavlinb 20GB?
-
May be 2GB.
-
@pavlinb 2.027.261.814 = 2GB, Sorry for my old eyes 😢
-
The most important is that we
- find the reason (too much .mlmodelc)
- change the code
- can clean the tmp
-
@cvp Thanks to you.