'Lists the directories beneath the specified path.'

def listdir(self, path):

    directories = []
    files = []
    for item in resource_listdir(self.module, os.path.join(self.base_dir, path)):
        (__, file_extension) = os.path.splitext(item)
        if (file_extension not in ['.py', '.pyc', '.scss']):
            if resource_isdir(self.module, os.path.join(self.base_dir, path, item)):
                directories.append(item)
            else:
                files.append(item)
    return (directories, files)
