rm -rf test_files python3 gen_test_files.py rm -rf ex4.img dd if=/dev/zero of=ex4.img bs=1M count=4096 mkfs.ext4 ./ex4.img ## create link cd test_files sudo ln -s ./1.txt ./linktest cd .. ## copy files to image mkdir tmp sudo mount ./ex4.img ./tmp/ cd tmp sudo mkdir -p test_files mkdir -p dir_to_remove sudo cp ../test_files/* ./test_files/ cd ../ sudo umount tmp ## run cargo run LOG=trace ## write check sudo mount ./ex4.img ./tmp/ cd tmp ls cd test_files ls cd ../../ sudo umount ./tmp