1

According to the docs, with Python you can set the file size limit with:

resource.setrlimit(resource.RLIMIT_FSIZE,(fileseeklimit,fileseeklimit))

but it is not clear what the unit is here.

The Bash builtin ulimit uses kilobytes for everything.

Joachim Breitner
  • 25,395
  • 6
  • 78
  • 139

1 Answers1

2

The RLIMIT_FSIZE here is a number of bytes.

A comment in the header file where that enum is defined says this:

/* Largest file that can be created, in bytes.  */
Cᴏʀʏ
  • 105,112
  • 20
  • 162
  • 194