Skip to content Skip to sidebar Skip to footer

Python Error Oserror: [errno 31] Too Many Links

See error message below, I get this while trying to create a new directory with Python's native os library. ... File 'files.py', line 93, in create_dir os.makedirs(d) File '/us

Solution 1:

The 32000 directory entry limit is a filesystem-level ext3 limit.

Solution 2:

This is a ext3 filesystem limitation. Check out http://en.wikipedia.org/wiki/Ext3#cite_note-17 You can upgrade to ext4, in ext4 there no such limitation about subdirectories. http://en.wikipedia.org/wiki/Ext4#cite_note-12

Solution 3:

Your filesystem might be built with a 32000 subdir limit(which is a default on many systems, but in general ext3 seems to have a variable limit which can be set while creating the FS). So, the maximum number of subdirectories you can have in a directory is 31,998. Check this post out: http://blog.ryanrampersad.com/2008/08/warning-mkdir-too-many-links/ (The comments are interesting)

Post a Comment for "Python Error Oserror: [errno 31] Too Many Links"