Skip to content

charlierobin/unity-set-dropbox-ignore-flags-for-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

set dropbox ignore flags for project files/folders

Related to this idea: https://github.com/charlierobin/xojo-dropbox-ignore

Based on the instructions from Dropbox:

https://help.dropbox.com/sync/ignored-files

Although revisiting the Google search results for this topic, it does now look as though the Good Folks at Dropbox have implemented this:

https://www.dropboxforum.com/discussions/101007CC1/cut-the-clutter-ignore-files-feature-is-now-live/840056

(Albeit still in a closed beta form. But any progress is good progress! It’ll be nice to have this rules.dropboxignore rules file and get rid of all these Xojo/Unity command line bodges.)

Uses Microsoft’s C# Process class, running the MacOS command line app xattr:

xattr -w com.dropbox.ignored 1 path/to/file/or/folder

Unity folders that are set to be ignored are:

Library

Logs

obj

Packages

Temp

(ie: the usual stuff you would clear out if you were archiving a project and wanted to get the size down to a decent uncluttered number)

…plus all the Visual Studio C# files,

ie: *.csproj and *.sln

Being a Mac user, I also elect to skip:

.DS_Store and .vs

I do frequently use Github with Unity projects, but I’m not really interested in having the Github data mirrored on Dropbox, so I also like to set the ignore flag on the project folder’s .git directory (if it exists).

I also often have the Github repository folder “wrapping” the Unity project folder, so that there can be other folders of work that are in the repository but not cluttering up the Unity folder,

ie: something like this:

~/path/to/repository/RepositoryName

~/path/to/repository/RepositoryName/UnityProjectFolder

~/path/to/repository/RepositoryName/other 3d assets

~/path/to/repository/RepositoryName/artwork

~/path/to/repository/RepositoryName/ideas

~/path/to/repository/RepositoryName/etc etc ...

So the Unity script also looks up one directory to see if there is a Github repository directory there, and sets ignore on that as well.

About

Sets the Dropbox “ignore” flag on files/folders in a Unity project that don’t need to be backed up

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages