<p>Is there a way to set quotas for directories inside each bucket in a MinIO server and monitor the size and quota with the API of each directory in the bucket?</p>

parham
<p>I have found <a href="https://docs.min.io/minio/baremetal/reference/minio-mc-admin/mc-admin-bucket-quota.html#mc-admin-bucket-quota" rel="nofollow noreferrer">this documentation</a> about bucket quota, but unfortunately it is just for buckets.</p>
<blockquote>
<p>The <a href="https://docs.min.io/minio/baremetal/reference/minio-mc-admin/mc-admin-bucket-quota.html#command-mc.admin.bucket.quota" rel="nofollow noreferrer" title="mc.admin.bucket.quota"><code>mc  admin  bucket  quota</code></a> command manages per-bucket storage quotas.</p>
</blockquote>
<p><strong>NOTE</strong>:</p>
<blockquote>
<p>MinIO does not support using  <a href="https://docs.min.io/minio/baremetal/reference/minio-mc-admin.html#command-mc.admin" rel="nofollow noreferrer" title="mc.admin"><code>mc  admin</code></a>  commands with other S3-compatible services, regardless of their claimed compatibility with MinIO deployments.</p>
</blockquote>
<hr />
<p>Using following command you can get usage info:</p>
<pre class="lang-sh prettyprint-override"><code>mc du
</code></pre>
<hr />
<p>See also <a href="https://docs.min.io/docs/minio-admin-complete-guide.html" rel="nofollow noreferrer">this doc</a>.</p>
