<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def action_import_folder(location):

 """Try to import all files from a local folder"""


    if os.path.isdir(location):
        onlyfiles = [
            f for f in os.listdir(location)
            if os.path.isfile(os.path.join(location, f))
        ]
        for file in onlyfiles:
            if not file.startswith("."):
                filepath = os.path.join(location, file)
                # print(Fore.RED + "\n---------\n" + filepath + "\n---------" + Style.RESET_ALL)
                click.secho(
                    "\n---------\n" + filepath + "\n---------", fg='red')
                return action_import(filepath)
    else:
        printDebug("Not a valid directory", "important")
        return None