Use a file to ignore / exclude files or folder
Add functionality similar to a gitIgnore file or nomedia files. Allow a user to add a .ignore file to exclude local files or folders from being synced.
Example: I have NodeJS projects on my OneDrive but get sync errors because the file path is too long. The long paths are primarily extra modules that do not need to be synced. It would be nice to be able to exclude certain folders or files.
Hi, for this scenario we’d recommend putting the files outside of the OneDrive folder. The design is that all files in the OneDrive folder will be sync’d and files outside the folder will not be sync’d.
Poy Chang commented
I need this, we need this! Can we get an update on this?
Alan Draper commented
Agree with the anonymous guy. If OneDrive is supposed to be the default location for stuff, and I can't put my stuff there, then what good is it? Same problem with node_modules clogging up my OneDrive.
If you're going to install OneDrive per default, You need to provide options for advanced users to make it workable.
Right now, If you install windows, then GitHub desktop, then checkout ( to the default location in "Documents" ) you're compleatly screwed. The rubbish OneDrive service will just work itsef to death, Untill you can't even use your local file system anymore.
Greg Holden commented
"Not Right Now".
"How about now?" he asks, four years later.
Darrell Bunger commented
Great for files that aren't part of the system, like a desktop.ini file... is it really that difficult to add an exclusion feature by protected OS filetypes, specific filename, filetype or just plain whitelisting/blacklisting??? I'm not a coder but I just can't imagine adding a white/blacklisting feature could be that painful of a task.
I have no need to sync files like this, particularly some of which can be quite large like thumbnail cache files. Plus the OP reply suggestion of moving such files to another folder, esp in the OP case, would break the testing/dev environment he's working with and make things difficult or impossible to redirect.
Kyle Askew commented
what a ******** answer
Rodrigo Salinas commented
+1. This is a must have feature. I also work a lot with Node and I don't want the node_modules folder syncing every time. Please please include this feature that is so simple to implement for you.
Great idea, early 2015 person!
Guillermo Domínguez commented
Upgrade to have this option NOW please...
LOL - almost 2019 and still waiting for this feature.
Steven K commented
This will break git, node, Visual Studio, etc.
Reski Rukmantio commented
So sad, for easy features like this not implement by microsoft team.
Muhammad Saad commented
So lame suggestion by Microsoft, this is a basic feature, not a rocket science.
The solution doesn't take into account that some applications will create temporary (or lock) files in the folder of the shared files. These will instantly create a "Onedrive needs your attention" status because they are "in use by". Being able to exclude such extensions/filetypes would be highly useful. Alternatively give an option let Onedrive ignore hidden files (as such files usually are) - which is also a good idea security wise.
Roland Harrison commented
Can we get an update on this? There are thousands of people asking for a .ignore file to be supported.
Looking at Angus' reply and it simply seems like a lazy approach. The option to flag files/folders as "Don't Sync" seems like a logical thing to do. If OneDrive wants to sync your Desktop folder, which is handy yes, but you cannot exclude certain large folders.
To all of us who really NEED this feature to be added, I saw a new thread going. If you haven't already, you might want to vote and add comments there: https://onedrive.uservoice.com/forums/913522-onedrive-on-windows/suggestions/18449926-reassess-the-possibility-to-ignore-or-exclude-sele
Kristjan H. commented
"we’d recommend putting the files outside of the OneDrive folder"
That is such an rediculous answer. "Of course, I will adapt all my projects to fit your tool!" said no one ever.
Kristjan H. commented
Typical Microsoft. The ideas of users are usually stupid, right?!
S Petel commented
For some reason voting is closed on this... but this is a much needed feature that the suggested solution isn't acceptable in so many cases.
For instance, having build artifacts, or working folders that are used by background operations (like: ".inprogress" folder of file conversions) - would be great to be able to set rules to simply ignore specific patterns not to upload them from the client.