const commands_folder_path = path.join(__dirname, 'commands');
const command_folders = fs.readdirSync(commands_folder_path);
for (const sub_command_folder in command_folders) {
const sub_command_folder_path = path.join(commands_folder_path, sub_command_folder);
console.log(sub_command_folder_path) /** C:\<path>\commands\0 */
const sub_command_folder_files = fs.readdirSync(sub_command_folder_path).filter(file => file.endsWith('.js')); /** No such file or directory, scandir C:\<path>\commands\0 */
const commands_folder_path = path.join(__dirname, 'commands');
const command_folders = fs.readdirSync(commands_folder_path);
for (const sub_command_folder in command_folders) {
const sub_command_folder_path = path.join(commands_folder_path, sub_command_folder);
console.log(sub_command_folder_path) /** C:\<path>\commands\0 */
const sub_command_folder_files = fs.readdirSync(sub_command_folder_path).filter(file => file.endsWith('.js')); /** No such file or directory, scandir C:\<path>\commands\0 */