def test_getFilenames(self):
     LogFile.getFilenames()
     self.assertTrue(isinstance(LogFile.getFilenames(), list))
# Create timeout handler
signal.signal(signal.SIGALRM, timeout_handler)
# Wait for 20s til the system will be shut down
signal.alarm(20)

### Try

try:
    ### Creation LogFile object

    print(env.PATH)
    # Create an object of the class LogFile --> logging
    log = LogFile()
    # Get the file names of the LogFile
    files = LogFile.getFilenames()
    print(files)

    ### Transfer every CSV file to server

    # For every file of the LogFile
    for file in files:
        # Load the file from the LogFile: Loads the data from the csv file
        log.loadFromFile(file)

        ### Delete Files without content
        if (log.isBrokenFile()):
            # If the file path exists, delete it and write the action to the log
            if os.path.exists(env.PATH + file):
                os.remove(env.PATH + file)
                print("[DELETE] broken file: " + str(file))