在空气中的位置存储文件的区别 [英] The Difference Of Location Storage File in air

查看:176
本文介绍了在空气中的位置存储文件的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问air.File.documentsDirectory.resolvePath,File.userDirectory.resolvePath之间的差异,air.File.applicationDirectory.resolvePath ..

I want to ask the difference between air.File.documentsDirectory.resolvePath, File.userDirectory.resolvePath, air.File.applicationDirectory.resolvePath..

有人能解释一下什么时候该文件将存储......

Can anybody explain when does the file will be store.....

特别是在窗口

推荐答案

AIR的applicationStorageDirectory会自动针对这些位置,这取决于操作系统的应用程序运行:

AIR's applicationStorageDirectory will automatically target these locations depending on which OS the application is running:

  • 的Windows 7 / Vista的: C:\ Users \用户名\ AppData \漫游\ APPLICATIONNAME

  • Windows 7 / Vista: c:\users\USERNAME\appdata\roaming\APPLICATIONNAME

Windows XP中: C:\的Documents and Settings \用户名\ Application 数据\ APPLICATIONNAME

Windows XP: c:\Documents and Settings\USERNAME\Application Data\APPLICATIONNAME

的Mac OS X: /用户/用户名/库/ preferences / APPLICATIONNAME

Mac OS X: /Users/USERNAME/Library/Preferences/APPLICATIONNAME

的Linux(Ubuntu的): /Users/USERNAME/.appdata /

Linux (Ubuntu): /Users/USERNAME/.appdata/

随着desktopDirectory,documentsDirectory,applicationDirectory(只读),它也有自己的具体位置,这些都是内置的便利,让AIR开发人员无需了解产生跨平台的应用程序(或专code代表)的目标操作系统的文件系统。

along with desktopDirectory, documentsDirectory, applicationDirectory (read-only), which, too, have their own specific locations, these are built-in conveniences that allow AIR developers to produce cross-platform applications without having to know about (or specifically code for) the file system of a target OS.

这篇关于在空气中的位置存储文件的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆