空气:可能吗?写入已安装的应用程序包
这可能是一个坏主意或者无论你不想怎么称呼它。尽管如此,我还是想知道 Air 是否可以在它自己安装的包中写入。我指的是在应用程序文件夹中发现大量的 OSX“.app”文件。由于其中每一个都可以作为常规文件夹打开,我猜它们就是这样。
我还错过了哪些其他奇特的文件写入技巧?
This is probably a bad idea or whatever you wan't to call it. Nevertheless, curious to know if Air can write inside it's own installed package. I'm referring to the OSX '.app' files found in great numbers in the applications folder. Since every one of these can be opened as a regular folder, i'm guessing that's what they are.
What other fancy filewriting tricks am i missing out on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这绝对是个坏主意。也就是说,看起来这可能是可能的。类似于(未经测试):
nativePath< /code>
和
applicationDirectory
文档充满了对此的警告。跟着他们。File
类中的来自文档:
It's definitely a bad idea. That said, it looks like it's probably possible. Something like (untested):
The
nativePath
andapplicationDirectory
documentation in theFile
class are full of warnings against this. Follow them.From the docs: