title: How to hide folder in NSDocumentsDirectory and disallow backup via iTunes & iCloud
body: <p>I create private folder in NSDocumentDirectory and i want to hide it in iTunes and disallow to backup.</p>
  
  <p>In this question <a href="https://stackoverflow.com/questions/9207495/how-to-hide-folders-created-in-document-directory-in-ios">How to hide folders created in Document Directory in ios?</a> people suggest to save in private directory.</p>
  
  <p>But it's not ok according apple documentation   <a href="https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html" rel="nofollow noreferrer">https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html</a></p>
  
  <blockquote>
    <p>Application_Home/Library/ You should not use this directory for user data files.</p>
  </blockquote>
  
  <p>Before iTunes11 this solution was work for me </p>
  
  <p><a href="https://stackoverflow.com/questions/16316819/can-i-add-the-do-not-back-up-for-the-document-directory-for-icloud">Can I add the Do not Back up for the &quot;Document Directory&quot; for iCloud</a></p>
  
  <p>but now i see folder with private docs in iTunes.</p>
  
  <p>Could somebody help me?</p>