LoginSignup
1
1

More than 5 years have passed since last update.

Swift のアプリケーションで利用しているファイルを確認

Posted at

/Library/Application Support配下のアプリで利用しているファイルについて確認したの時のメモ

参考記事

やってみる

hoge.swift
// confirm directory
let path = NSHomeDirectory() + "/Library/Application Support"
print("path = " + path)
let fm = NSFileManager.defaultManager()
print("!!!!!")
print(fm.subpathsAtPath(path))
print("!!!!!")

ログはこんな感じに出力

path = /var/mobile/Containers/Data/Application/3CC85FE5-D7DD-4339-A001-A6046BC2AD2A/Library/Application Support

Optional(["xxxxx", "xxxxx/d40796a4cd4247f5b0a469b9952da59f", "xxxxx/d40796a4cd4247f5b0a469b9952da59f/events", "xxxxx/d40796a4cd4247f5b0a469b9952da59f/events/eventsFile", "xxxxx/d40796a4cd4247f5b0a469b9952da59f/preferences"])

iExploer では見れなかったファイルも確認できた。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1