Reputation: 1
According to the recommended nuplan dataset structure, dir 'sensor_blobs' should contain camera and lidar info of one vehicle.
However, when i am unzipping, i encounter conflicting folders with the same name.
How to solve this problem given that i am using terminal to unpack.
Very appreciated if you could help
nuplan data tree conflicting folders
I've tried:
mkdir -p extracted
for file in *.zip; do
temp_dir=$(mktemp -d)
unzip "$file" -d "$temp_dir"
for item in "$temp_dir"/*; do
if [ -d "$item" ]; then
rsync -a "$item/" "extracted/$(basename "$item")/"
else
mv "$item" extracted/
fi
done
rm -rf "$temp_dir"
done
But failed T—T
Upvotes: 0
Views: 19