Reputation: 81
How could I limit the size for a folder on a USB drive? For example, if I set 5 MB for the size of a folder then I could not copy over 5 MB data to this folder.
Upvotes: 4
Views: 1267
Reputation: 45771
There's no way to do this on a per-folder basis with the functionality built into the operating system. You can do it (as long as the device is formatted to NTFS) with drive quotas at the level of the whole drive/partition
Some further reading on drive quotas:
The only other way you could do this would be by writing some form of File System Filter driver, but this isn't something that's achievable at present in managed code.
Upvotes: 4