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.
Navid Eivazzadeh commented
As you know some applications create a folder in the documents folder and save some large files in it. I want to exclude them from syncing. If that application doesn't provide a way to change save location of those files then the only way to exclude them will be through OneDrive settings.
Alexander de Jong commented
Hi, I would like the .ignore feature Thanks!!!
Tom H commented
I have had the same complaints as the rest of this group, but I just ran across an app that appears to solve them. It's called Insync and it works with both OneDrive and Google Drive. I have no connection with the company. I just bought it on Black Friday 2019 when they had a half-price sale, so I don't claim to be an expert after using it for an hour or two. Normally an individual license is $30 one-time which is good for multiple computers but only one user account, so if you want to use it with both a OneDrive and Google Drive account that counts as two licenses. Team accounts are $50 per account. You can try it free for 15 days.
You can sync any folder including those on external drives and it supports full .gitignore syntax, although I haven't had a chance to try that yet. It also supports Windows, Mac, and Linux.
I'm not sure if it supports the Personal Vault feature yet, but I prefer to use Cryptomator. It's a free open source app (donations accepted) that transparently encrypts files before saving them in your cloud drive. So I can store confidential documents and not have to worry about Microsoft or anyone else having a back door. They also have iPhone and Android apps but they're not free (about $10).
I hope this helps someone, here is the link for Insync:
and for Cryptomator:
Michelle Cassidy commented
What a ridiculous answer. I personally am insulted - as if any of us here didn't find that answer before landing on this page. Just wow. This is needed. I cannot click any of the vote buttons on this site. Nice platform. This is ridiculous that standard features developers need are not even considered in this platform. This is a good way to chase developers away. Please explain what harm this would cause to simply not upload files with .ignore? Non-developers wouldn't know to use it and developers know exactly what it does. Seems like arrogance to me also.
Fuck You Microsoft commented
What a ****** answer Angus, this basic functionality is needed otherwise we may as well use any other cloud storage tool. **** if it were my decision I wouldn't even be using this colossal waste of a tool but since I'm forced to due to work I've gotta deal with all my node modules using up all storage space, slowing down my system and to add insult to injury, I get a ****** notification every time I do anything with the node modules folder
Lucas Reis commented
I have migrated my code to Mega, it allows us to exclude folders from sync (eg. node_modules, vendor and so on).
My computer has crashed and I lost all of my recent code because OneDrive was wating time syncing node_modules folder instead of my code, that's what matters for me. I am so disappointed.
So why .gitignore exists? Why not just put all files that should not be traced out of git repository? `node_modules` works only when it is in the repository.
Simon Bond commented
Are you serious Agnus Logan??? how arrogant is your answer??? we are paying customers, there are some files that are created by programs that you CANNOT choose where to put them you need to GTFU and give proper concern to peoples queries.
I would like something that replicates a gitignore file as I am using pycharm and the interpreter settings are mandatorily stored in the same folder as the project, and yep as you guessed it I dont want to use git out of convenience sometimes so I am using one drive to get access to my code - and this causes means the local system interpreter settings are syncing too.
I think this is a very reasonable request from Victor, and a poor *** response from yourself.
I don't get a choice in where I put my files. I have to put them in a folder that the organization has sync'd but need for certain files not to be sync'd. We need a way to stop certain files or sub-folders from syncing.
Ignoring particular files is a basic need. I don't know why MS just don't want to add this feature.
I want to synchronize a Visual Studio project folder but the synchronization always stuck on the .suo file and it makes all the rest files stop synchronizing. Tell me how can I remove the .suo file out of the project folder? That's ridiculous.
I need this too. Why can't I vote for this? If I were Microsoft I would be ashamed to not have such a simple thing as an option. Specially one that is so obvious people want since 2015.
I was considering using OneDrive to store my projects, but for me this is a deal breaker.
You have lost another costumer. Keep being stubborn and don't listen to anyone, you'll do great...
CJ K. commented
This is a critical bug fix. With the pervasiveness of expo/npm for app development, developers need to be able to quickly and easily ignore folders without going into the GUI for help. Please add the .gitignore feature.
I don't think placing the folder outside of the OneDrive folder is always the best option. For example I have some code projects which I want to upload to OneDrive. However, I don't want the compiled sources uploading as they'll re-upload every time I build and then hog the CPU. An ignore file would be great for excluding folders.
I agree, Some log file , Like .dat , Two or more computer the file is different, That make onedrive created lots of dat files, So i want set some file or folder to ignore upload .
Please upvote top ticket with the same request https://onedrive.uservoice.com/forums/913522-onedrive-on-windows/suggestions/18449926-reassess-the-possibility-to-ignore-or-exclude-sele
What about the desktop.ini file and desktop folder redirection
struggling with OneDrive due to missing ability to set more detailed file and folder no-sync rules in development environment - forced instead to turn it off / on in large time blocks.
It is an important feature for the developers. However as of 2019 July 4, four yeast later, this feature is still not in OneDrive (mac version, don't know the Windows version), and apparently not because of technical difficulty. It makes people wonder what the company really cares about.
Ed Miller commented
Every day I see my OneDrive icon with the "syncing" status icon, all because one log file is open while I'm at work all day, and it can't sync that open file. We really *must* be able to exclude certain explicitly identified files, without losing the ability to automatically back up any other files that happen to get added to the same folder.