Newer
Older
cortex-hub / test_file_sync.py
import subprocess
import time

def cleanup():
    # Remove files if they exist
    import os
    if os.path.exists("test_10mb_A.bin"):
         os.remove("test_10mb_A.bin")

def generate_10mb_file():
    with open("test_10mb_A.bin", "wb") as f:
        import os
        f.write(os.urandom(10 * 1024 * 1024))

if __name__ == "__main__":
    generate_10mb_file()