3 ms·
OK, this is probably a very dumb question, but I'm trying tio understand the usecase. I put things that I want to sync with Dropbox in /Dropbox and take out th
by Angostura 7y ago
OK, this is probably a very dumb question, but I'm trying tio understand the usecase.
I put things that I want to sync with Dropbox in /Dropbox and take out things that I don't want to sync.
Why would I want to leave things in /Dropbox that I don't want on Dropbox?
- marksomnian 7y agoIf you're a Node/JavaScript developer, you might want to keep code in Dropbox, but putting node_modules in there will tank it.
- b3kart 7y agoDoes it not suggest that node_modules in the source directory isn't a good idea to begin with?
- gitgud 7y agoThe project directory would contain everything needed for that project including node_modules (which is generated from the package.json) Every nodejs project is structured this way... node_modules is always sitting next to your src...
- edanm 7y agoIt is usually git-ignored, which means it isn't part of the "real" source directory (the one that is shared with other devs). It's a temporary output of the build process, in essence.
- dylan604 7y agoI don't use Dropbox, nor am I a Node dev. Why would a node_modules directory tank Dropbox?
- somehnguy 7y agoBecause NPM's first operation is to pull in half the internet as modules so you can write 'Hello World' on your webpage. Thats too many files for the Dropbox client to handle.
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- kbumsik 7y agoThis is the same question as why .gitignore files exists. You probably want to leave build files unsynced in your project folder.
- k1t 7y agoThe primary purpose of my project folder is to contain my project, including source, dependencies, build output, etc - so it makes sense to me that tools like Git allow you to exclude/ignore parts of it. But the primary purpose of the Dropbox folder is to sync stuff to Dropbox. The idea that I would put something in my Dropbox folder that I didn't want to sync is bizarre. It sounds like it's a common case where people put their project folders inside their Dropbox folder. Before today it never occurred to me that anybody would do that. I do have some projects I periodically Git Bundle into a Dropbox folder though. Not criticizing anybody's workflow, just surprised it's so common.
- JoeAltmaier 7y agoIts so I can have my computer burn down, and set up another one, install Dropbox, and continue work uninterrupted. Hey! This person has a way: https://superuser.com/questions/469776/how-to-exclude-files-not-folders-from-dropbox-sync https://superuser.com/questions/469776/how-to-exclude-files-...
- 0xffff2 7y agoI don't use Dropbox, but in OneDrive this is a per-computer setting, so I may have some large files that I want to sync on my desktop, but not on my laptop where I only have a 256gb SSD.