cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Apps and Installations

Have a question about a Dropbox app or installation? Reach out to the Dropbox Community and get solutions, help, and advice from members.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Ignore folder (without selective sync)

Feedback on the new desktop app "ignore files" feature.

jvasileff
Helpful | Level 6

@Daphne that's great news! I look forward to trying it out.

But it would also be nice to have a configuration file, like ".dropboxignore", to list paths or patterns to exclude. The reason is that extended attributes are tied to the actual file or folder, and will be gone if the file or folder is deleted and recreated.

The common use case for this is a software build folder that gets deleted and recreated on clean builds. Under xattr system, the "new" build folder would sync to Dropbox even if the "old" build folder had the necessary com.dropbox.ignored xattr.

100 Replies 100

XionicFire
Collaborator | Level 9
Hmm you are correct but depending on your specific problem that issue can be addressed by the clever use of .ps1 powershell script files and windows scheduler

XionicFire
Collaborator | Level 9
To explain myself better, you can do a .ps1 powershell script that runs every 5 minutes or w/e using windows scheduler that searches and finds files matching your criteria in a specific folder recursively and then adds them automatically to the ignore list "almost" instantaneously, not the best solution but would do the job you want

ccd1
Helpful | Level 6

Thank you so much XionicFire... saves me the hassle of migrating to a new service, for the time being... unbelievable that dropbox is so useless on this issue that we have to resort to user posted .reg changes.

corylulu
Helpful | Level 6

@Daphne Okay, @XionicFire was right, I was simply having an issue because my paths had square brackets `[]`  in them and I needed to use `-LiteralPath` instead of `-Path`. 

However, even after ignoring the folders I wanted to ignore, Dropbox is still deciding to index them on every change and is locking file access when doing so, which is causing me lots of problems.

Dropbox shouldn't be accessing the files inside of an ignored folder at all. Also, Dropbox didn't used to lock file access when indexing/syncing, what changed? 

XionicFire
Collaborator | Level 9

Yes i ran into the same problem with dropbox using ( ) in the name for the business dropbox, on my main servers i solved this problem by saving one of my old dropbox installation files that had my dropbox set to D:\Dropbox before they made the forced change, i then created a directory called Dropbox (W) and removed permissions so dropbox cant touch it, this way I have my dropbox still as D:\Dropbox which does not break all my scripts, not the most elegant solution but its the only way i found to keep my dropbox as Dropbox and not break my scripts.

 

 

XionicFire
Collaborator | Level 9

Thanks for the suggestion i will update the code.

XionicFire
Collaborator | Level 9

@ccd1 , another user suggested a good change, ive updated the REG code to include it, it adds support for directories or files containing [ or ] characters, in case you want to update it to the new version, installing the update should be as simple as copying the new code and running the reg again.

 

Im glad its useful to people, I know id be going mad and killing someone if I didnt have this and I had to manually type every file/folder I need to ignore with random generated names all over the drive on 172 machines.

koochy_rat
Helpful | Level 5

For those using Unity, here is an editor script I made to automatically set the ignore attribute on startup:

using System.Diagnostics;
using UnityEngine;
using UnityEditor;

[InitializeOnLoad]
public class EditorStartup
{
    //to make sure Temp folder doesn't get synced to Dropbox. Make sure Temp is deleted on Dropbox online
    //Temp folder gets deleted by Unity so the extended attributes need to be set every time
    static EditorStartup()
    {
        //when recompiling scripts this will get called again. check to make sure we only do this on actual editor start
        if (EditorApplication.timeSinceStartup > 60) return;
        //UnityEngine.Debug.Log("Editor startup script");
#if UNITY_EDITOR
        if (Application.platform == RuntimePlatform.OSXEditor)
        {
            Process.Start("xattr", "-w com.dropbox.ignored 1 Temp");
            UnityEngine.Debug.Log("xattr -w com.dropbox.ignored 1 Temp");
        }
        else if (Application.platform == RuntimePlatform.WindowsEditor)
        {
            Process.Start("PowerShell", "Set-Content -Path Temp -Stream com.dropbox.ignored -Value 1");
            UnityEngine.Debug.Log("PowerShell Set-Content -Path Temp -Stream com.dropbox.ignored -Value 1");
        }
#endif
    }
}

waynelambert
New member | Level 2

Yes, this simply needs to be a file which can be dropped into the root folder of your project called `.dbignore` which behaves in the same way as a `.gitignore` or a '.dockerignore' file in that the files are ignored for sync.

 

This would be so helpful when developing a project and not wanting package files or virtual environment files to be synced.

 

I can't tell you the number of times that I have had to log in to dropbox.com to delete all of the instances of `_______(Selective Sync Conflict)` folders from my project.

 

It also means that so many more files than is necessary is synced which takes uncessary syncing time.

 

This surely cannot be that hard to implement.

borkdude
Helpful | Level 5

I've had a conversation with a Dropbox developer about them porting stuff to Rust. Between the lines he said that implementing ignoring files by setting the file attribute was the least amount of work of getting this implementing. This seemed to indicate that Dropbox still hasn't thought this through from the perspective of the user. I hope this will be revisited, because the current functionality is clumsy. If you delete a file from Dropbox, the attributes are gone. If a tool re-creates the file, you can start all over. We need an ignore file. Now.

Need more support?