tasks/dogstatsd.py
def refresh_assets(_):
    """
    Clean up and refresh Collector's assets and config files
    """
    # ensure DOGSTATSD_BIN_PATH exists
    if not os.path.exists(DOGSTATSD_BIN_PATH):
        os.mkdir(DOGSTATSD_BIN_PATH)

    dist_folder = os.path.join(DOGSTATSD_BIN_PATH, "dist")
    if os.path.exists(dist_folder):
        shutil.rmtree(dist_folder)
    copy_tree("./cmd/dogstatsd/dist/", dist_folder)

    Clean up and refresh Collector's assets and config files
    
Clean up and refresh Collector's assets and config files
Clean up and refresh Collector ' s assets and config files
def refresh_assets(_):
    if not os.path.exists(DOGSTATSD_BIN_PATH):
        os.mkdir(DOGSTATSD_BIN_PATH)
    dist_folder = os.path.join(DOGSTATSD_BIN_PATH, "dist")
    if os.path.exists(dist_folder):
        shutil.rmtree(dist_folder)
    copy_tree("./cmd/dogstatsd/dist/", dist_folder)
def refresh_assets ( _ ) : if not os . path . exists ( DOGSTATSD_BIN_PATH ) : os . mkdir ( DOGSTATSD_BIN_PATH ) dist_folder = os . path . join ( DOGSTATSD_BIN_PATH , "dist" ) if os . path . exists ( dist_folder ) : shutil . rmtree ( dist_folder ) copy_tree ( "./cmd/dogstatsd/dist/" , dist_folder )
Clean up and refresh Collector's assets and config files
Clean up and refresh Collector ' s assets and config files
"""
    Clean up and refresh Collector's assets and config files
    """ # ensure DOGSTATSD_BIN_PATH exists
_