Add a max folder name limit to prevent too long path names #13

Merged
NafeeJ merged 2 commits from master into master 2023-05-10 15:36:11 -06:00
NafeeJ commented 2023-05-09 13:55:52 -06:00 (Migrated from github.com)

In my use case, some folder names of assignments caused the path length to exceed 260 characters, which Windows (or at least File Explorer) cannot handle (you can't delete, move, or rename these files).

This implements an integer to limit the folder name of modules, assignments, announcements, and discussions and adds a "-" at the end to indicate it was cut off (I would've used "..." but thats not valid for file names).

I set it as 70 because that is what I found creates a reasonable buffer for the 260 limit (in case I want to move the files around which will cause the path length to change).

In my use case, some folder names of assignments caused the path length to exceed 260 characters, which Windows (or at least File Explorer) cannot handle (you can't delete, move, or rename these files). This implements an integer to limit the folder name of modules, assignments, announcements, and discussions and adds a "-" at the end to indicate it was cut off (I would've used "..." but thats not valid for file names). I set it as 70 because that is what I found creates a reasonable buffer for the 260 limit (in case I want to move the files around which will cause the path length to change).
davekats (Migrated from github.com) approved these changes 2023-05-10 15:35:10 -06:00
davekats (Migrated from github.com) left a comment

Looks great, thank you for contributing!

Looks great, thank you for contributing!
Sign in to join this conversation.
No description provided.