Skip to content

删除当前目录或指定目录下所有的 .DS_Store 文件/Delete all .DS_Store files in the current directory or the specified directory

License

Notifications You must be signed in to change notification settings

VXenomac/DS_Store_Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DS_Store_Cleaner

DS_Store_Cleaner是可以删除当前目录或指定目录下所有的 .DS_Store 文件的工具。 / DS_Store_Cleaner can delete all .DS_Store files in the current directory or in the specified directory.

什么是 .DS_Store? / What is a .DS_Store?

.DS_StoremacOS 用来保存如何展示文件/文件夹的数据文件,如果开发/设计人员将 .DS_Store 文件上传或部署到线上环境,可能造成文件目录结构泄露,特别是备份文件、源代码文件。如果不设置 .gitignore 文件,.DS_Store 很容易被上传到 Github 之上,可以使用该工具删除已经上传的文件。

ds_store_exp 就是这样的一个 .DS_Store 文件泄露利用脚本。

.DS_Store is the data file used by macOS to describe files/folders. If the developer/designer uploads or deploys the .DS_Store file to the production environment, the file directory structure may be leaked, especially the source code file.If you don't set the .gitignore file, .DS_Store can easily be uploaded to Github. Then you can use DS_Store_Cleaner tool to delete these files that have already been uploaded.

ds_store_exp is such a .DS_Store file leak exploit script.

安装 / Install

pip install DS_Store_Cleaner

使用方法 / Usage

  • 清除当前路径下所有 .DS_Store 文件 / Clear all .DS_Store files in the current directory:
dsclean
  • 清除指定路径下所有 .DS_Store 文件 / Clear all .DS_Store files in the specified directory:
dsclean ~/Desktop

License

MIT License

About

删除当前目录或指定目录下所有的 .DS_Store 文件/Delete all .DS_Store files in the current directory or the specified directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages