The directory I am trying to rename has around 5k parquet files.
Unfortunatelly, os and shutil libraries aren't helping with it
import os, shutil
os.rename('/dbfs/FileStore/AllInOneParquets/SdId=791221', '/dbfs/FileStore/AllInOneParquets/test1')
shutil.move('/dbfs/FileStore/AllInOneParquets/SdId=791221', '/dbfs/FileStore/AllInOneParquets/test2')
Both tries above failed. os.rename gave me the following exception:
OSError: [Errno 7] Argument list too long
The shutil.move, which tries to use os.rename in the background, started to move the files instead of really renaming.
The 5k files are just a test and I am going for much more than it. Is there a way around?