Agreed with Ralston -- I'm assuming you are referring to your OneDrive folder? With OneDrive, your files are stored in the cloud and may be synced to your desktop. If you send an attachment from there, then it should be just an attachment and isn't intended to allow anyone access to your library.
With OneDrive, you can send out sharing links however, and these can require login or even be publicly accessible. If you have a publicly accessible link to a specific file, this should allow access to only *that one file* and not an entire folder or library. However, you can also share folders, so if you decide to do this you would want to make sure you are only sharing the items you want people to view.
In other words, it really depends on how you are sharing your documents and which program/OS you are using.