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.
Eiji Hirayama commented
+530,000, Please share me your power for introducing '.odignore' (OneDrive ignore file)!!
Ben C commented
OK then Angus, I'll use someone else's product.
BTW if "The design is that all files in the OneDrive folder will be sync’d and files outside the folder will not be sync’d" then why do you provide the selective sync settings? I don't understand why both Dropbox and OneDrive cater for users who don't want to download certain files from their cloud account, but not at all for users who don't want to upload certain files - it makes no sense.
Ryan Prosser commented
I wish we could also up/down vote comments
Ryan Prosser commented
I've just started using windows 10 and ondrive. Thought it would be the saviour to my cloud storage and sync needs
I can't believe there is not functionality to achieve this simple config
Most comments and requests I've read so far have been responded to by MS with the suggestion to turn off that folder from sync - which is a complete misunderstanding... We need the complete REVERSE:
- have a folder that is/must be pathed within OneDrive (eg a documents folder) that then creates content we do NOT want in cloud storage - all the app developers etc.
So DO NOT upload it
It is not a solution to 'put it elsewhere'
Here is eg. Many games that must save / store within documents path. Creates large files
This is 'local app data' No need to have in cloud for sync to another device.
But, can't prevent upload.
I can deal with dirlinking the local data between my other drives
Shocked to discover I can't prevent upload to OneDrive and therefore only keep a copy on local PC
If it is tricky for your GUI design to think how to make this happen, at least a '.ignore' file in the folder would be enough for the end users who are searching for this solution to just implement in 30sec
Get it done!
Jason R. Coombs commented
Christos Koutsiaris commented
It would be great to have this. As a front end developer who uses npm daily this feature would save a lot of time. We don't need to sync the node_modules folder
I agree - this would be an awesome feature. I have onedrive trying to sync huge .TDE files (like 15gb)... its incredibly painful.
Brian Bancroft commented
I disagree. There isn't a cloud storage solution with an equivalent to a .gitignore. IT would be nice.
Zoey Wyandt commented
I would very much like to see this as an option, especially now that symlink support is gone.
Time to reconsider yet? This would be a very very useful feature to ensure temporary or work files created by applications and tools are not cluttering up OneDrive space.
Actually, this is awesome.
I use OneDrive for my photo library and I do not want to SYNC RAW photos to all my devices. I would love being able to exclude CR2 files and such to save 500GB on my laptop!
David Smith commented
I'd love to have this feature
If someone wants to redirect their Documents folder to the OneDrive - Company folder they might then it all gets sync'd no matter what? It would be nice to exclude a folder that maybe had large ISO or something. They might still need to be in the documents folder but NOT need to be sync'd to OneDrive. There are lots of reasons to have an exclude or "Offline Only" option.
What a horrible answer, Angus. That's really important feature, for instance if I want to keep all the files in my drive account, except node_modules, which is super heavy. That's should be considered by MS team for sure
I did not know dropbox had this feature, will test it and if it works will change to dropbox
Michal Kovařík commented
But onedrive already has settings to selectively sync folders. This would be just more expressive and programmers-friendly way to do it. I use Onedrive extensively for my personal and school projects based on Nodejs. Having to sync node_modules folder is in most cases a nightmare and setting Onedrive to ignore this folder in each of my project is also very annyoing. Simply dropping .onedriveignore file into the folder would work just like "rightclick on onedrive icon > settings > account > choose folders > navigation to current folder and checking off the node_modules folder"
Jim Massey commented
Angus, you're short sighted on this one. .gitignore exists for a reason, and OneDrive lacking something similar greatly hampers using it as a serious collaboration platform for my team. We COULD use it by creating a special sync solution for files that One Drive can handle...but that means structuring the way we work around the limitations in your product. That's not good enough, frankly.
Contact me with more real world use cases involving data science teams, but you're forcing us to use Dropbox when we are partnered with Microsoft. Shame.
Fer Padrón commented
I can't do your advice.
I have several sensible files called *.vdi used by VirtualBox (mandatory to me in OneDrive folder). Because some of they are too long I do backups dividing every VDI file, so every new divided file is under 10GB. However continually I get the error "You can not upload files over 10GB in your OneDrive" since original file still (and must) be in that path. If I could ignore big files it would be great.
+1, very nice to have this feature
Jordan Tucker commented
Also, this is the #1 feature requested for Dropbox, so I'm pretty sure it would be high up on the list if we could still vote on it.