简体   繁体   中英

Library folder in MAC OS 10.7.4 missing

Am using Mac OS version 10.7.4. In my iPhone application am creating a database. Now i want to check that database in documents directory path. And i know it'll be stored in users/iphone/library section. But in mac os 10.7.4 version Library Folder is missing in finder. Where can i find the library folder in my mac machine? Thanks in advance.

它位于此路径〜/ Library

In Mac-Lion, Library files are hidden by default. To make it visible, open the terminal and type the following code

chflags nohidden ~/Library

Now relaunch the finder, you can see the library files.

在您的终端中键入此内容,它将立即显示出来:

chflags nohidden ~/Library/

I found the answer by myself.

To unhide the library folder,

  1. Go to Terminal and type "chflags nohidden ~/Library/". You'll find the Library folder in your finder now.

To hide your Library folder again,

  1. Go to Terminal and type "chflags hidden ~/Library". This will hide your library folder from finder.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *document = [paths objectAtIndex:0];
NSLog(document);

open your finder, GO > Go to folder > paste the path

Please look at the following solutions: http://helpx.adobe.com/x-productkb/global/access-hidden-user-library-files.html

Apple made the user library folder hidden by default with the 10.7 release. If it's necessary to access these files for Adobe-related troubleshooting, use one of the following methods to make the user library content visible.

Method 1

In the Finder, choose Go > Go To Folder. In the Go To Folder dialog, type ~/Library Click Go.

Method 2

Hold down the Alt (Option) key when using the Go menu. The user library folder is listed below the current user's home directory.

Note: After you open the Library folder, you can drag the Library icon from the top of that window to the Dock, Side Bar, or toolbar. That way, it's readily accessible.

Method 3

The following method makes the user library folder permanently visible.

Note: Adobe recommends that only advanced users use this method.

Launch Terminal from Mac HD > Applications > Utilities. From within Terminal type the following command and press Return:

chflags nohidden ~/Library

Enter the system administrator password, if prompted, and press Return.

Note: The System administrator password is not visible as you type it.

Close Terminal for this change to take effect.

Got to Utilities and open Terminal and simply execute this query to show Library Folder

chflags nohidden ~/Library/

and for hiding any Folder use same query with "hidden" word like

chflags hidden ~/Library

I tried chflags command but not work for me(10.13.4). It was solved with steps:

  1. open /Users/${username} in finder
  2. right click and popup shows, click "show view options", and a new popup shows
  3. check "Show Library Folder"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM