This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from discord.ext import commands | |
import apraw | |
# instatiate a `Bot` instance | |
# this is using the Discord.py library | |
# source can be found here: https://github.com/Rapptz/discord.py | |
bot = commands.Bot(COMMAND_PREFIX, description=DESCRIPTION) | |
# instantiate a `Reddit` instance | |
# you can also supply a key to an entry within a praw.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static ArrayList<File> getSubFolders(File folder) { | |
File[] dirs = {folder}; | |
ArrayList<File> directories = new ArrayList<>(Arrays.asList(dirs)); | |
File[] fs = {folder}; | |
ArrayList<File> folders = new ArrayList<>(Arrays.asList(fs)); | |
while (folders.size() > 0){ | |
ArrayList<File> remove = new ArrayList<>(); | |
ArrayList<File> add = new ArrayList<>(); |
NewerOlder