我想要rsync
递归文件夹,但希望子文件夹仅包含到一定深度。
例如,我想要 1、2、3 或 4 个这样的子文件夹的深度:
source/
??? subfolder 1
? ??? subsubfolder
? ? ??? subsubsubfolder
? ? ? ??? wanted with depth 4.txt
? ? ??? wanted with depth 3.txt
? ??? wanted with depth 2.txt
??? subfolder 2
? ??? wanted with depth 2.txt
??? wanted with depth 1.txt
Run Code Online (Sandbox Code Playgroud)