Is garbage collection work for upload foleder as well?

From @satyamakgec on Wed Mar 22 2017 06:10:34 GMT+0000 (UTC)

Hi Folks , I am new in ipfs . i am creating an application that push the folder over the ipfs . I am concern for the garbage collection that it may automatically delete my content on ipfs please give me a brief over view to manage the ipfs gc

Thanks

Copied from original issue: https://github.com/ipfs/faq/issues/242

From @Kubuxu on Wed Mar 22 2017 10:47:37 GMT+0000 (UTC)

ipfs add has --pin option it is default to true so it pins added file/directory right away. Pinned files and directories won’t be removed by the GC.