Code: Select all
import uos
import uerrno
import sys
uos.mkdir('test')
try:
for x in range(10000000):
try:
uos.listdir('test')
except Exception as e:
print('Error indexing files: ',e)
print('x:',x)
uos.sync()
sys.exit()
filename = 'test/' + str(x) +'.json'
with open(filename, "w") as file:
file.write('testing of file system limits')
uos.sync()
except Exception as e:
print(e)
print('Limit :',x)
When I enter the command :
Code: Select all
os.rmdir('test')
Which has something to do with file permissions.
Anyone know why I can't delete this folder?
The only option I have is to mount it on my PC and manually delete the folder.