The use of the addition assignment operator in line 37 of "OptionsOverlay.tsx" was causing the folderSrc variable to be appended with ${folderSrc}/collection-${uuidv4()} and redeclared as such. This was causing the creation of a large, unnecessary, and hard to follow tree of directories upon the creation of each sub-collection, as the path would duplicate the root path, and then add it onto the pre-existing path in order to create the directory for the sub-collection. A single operator, caused an obscene amount of folders to be created on the creation of each subdirectory.
This is an example of the directory tree that was being created, with the 'Collections' folder I had created as a place to store my collections.
The use of the addition assignment operator in line 37 of "OptionsOverlay.tsx" was causing the
folderSrc
variable to be appended with${folderSrc}/collection-${uuidv4()}
and redeclared as such. This was causing the creation of a large, unnecessary, and hard to follow tree of directories upon the creation of each sub-collection, as the path would duplicate the root path, and then add it onto the pre-existing path in order to create the directory for the sub-collection. A single operator, caused an obscene amount of folders to be created on the creation of each subdirectory.This is an example of the directory tree that was being created, with the 'Collections' folder I had created as a place to store my collections.
The proper directory tree, with two levels, 1 parent, and many children, should have been: