LoginSignup
0
0

More than 3 years have passed since last update.

[Unity] Assets フォルダから全ての meta ファイルを消すワンライナー

Last updated at Posted at 2019-09-08

ルートディレクトリ・ホームディレクトリ等で実行すると、いろんな Unity プロジェクトの構成が悲惨なことになる可能性があるので注意してください!

必ず cd で meta ファイルを消したいディレクトリに入ってから実行してください。
子ディレクトリの meta ファイルも全て削除されます。

Mac

find . -name "*.meta" -type f -delete

Mac OS 10.14.6 でテストしました。

Windows

cmd.exe の場合

del /s /a /f *.meta

PowerShell の場合

get-childitem *.meta -recurse -force | remove-item -force

Windows 10 でテストしました。

必要になる場面

  • プロジェクト全体をコピーしたいけど meta は消したい
  • 他のプロジェクトから部分的にフォルダをコピーしたいけど meta は消したい

というような時に使用してください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0