File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
prepare_data/structured3d Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Define the base directory (current directory in this case)
4
+ BASE_DIR=" /Users/gauravpradeep/CrossOver_ScaleUp/Structured3D"
5
+
6
+ # Define the target subfolder
7
+ SCANS_DIR=" $BASE_DIR /scans"
8
+
9
+ # Create the scans folder if it doesn't exist
10
+ mkdir -p " $SCANS_DIR "
11
+
12
+ # Move all files and directories (except "scans" itself) into the scans folder
13
+ for item in " $BASE_DIR " /* ; do
14
+ # Skip the scans directory
15
+ if [[ " $( basename " $item " ) " == " scans" ]]; then
16
+ continue
17
+ fi
18
+
19
+ # Move the item into the scans folder
20
+ echo " Moving $item to $SCANS_DIR "
21
+ mv " $item " " $SCANS_DIR "
22
+ done
23
+
24
+ echo " All files and directories have been moved to the 'scans' folder."
You can’t perform that action at this time.
0 commit comments