Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously. The cookie is used to store the user consent for the cookies in the category "Analytics". The cookies is used to store the user consent for the cookies in the category "Necessary". The cookie is used to store the user consent for the cookies in the category "Other.
The cookie is used to store the user consent for the cookies in the category "Performance". It does not store any personal data. Functional Functional. Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance Performance. Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics Analytics. Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement Advertisement. For details, see Moving a file to the trash. These methods send a file or directory to the System trash, the first working synchronously, the second working asynchronously see AIR file basics. For example, the following code synchronously moves the test.
The File class includes a createTempFile method, which creates a file in the temporary directory folder for the System, as in the following example:. The createTempFile method automatically creates a unique temporary file saving you the work of determining a new unique location. You can use a temporary file to temporarily store information used in a session of the application. Note that there is also a createTempDirectory method, for creating a unique temporary directory in the System temporary directory.
You may want to delete the temporary file before closing the application, as it is not automatically deleted on all devices. Adobe Flash Platform. Working with files Adobe AIR 1. Getting file information Copying and moving files Deleting a file Moving a file to the trash Creating a temporary file. Note: You can associate a file type with an AIR application so that double-clicking it opens the application.
For details, see Managing file associations. Getting file information The File class includes the following properties that provide information about a file or directory to which a File object points: File property Description creationDate The creation date of the file on the local disk. Copying and moving files The File class includes two methods for copying files or directories: copyTo and copyToAsync. Getting file information The File class includes the following properties that provide information about a file or directory to which a File object points: File property Description creationDate.
The creation date of the file on the local disk. Whether the referenced file or directory exists. An Icon object containing the icons defined for the file. Public Properties. Hide Inherited Public Properties. Show Inherited Public Properties. A reference to the class object or constructor function for a given object instance. Public Methods. Hide Inherited Public Methods. Show Inherited Public Methods. Indicates whether an object has a specified property defined. Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Indicates whether the specified property exists and is enumerable. Sets the availability of a dynamic property for loop operations. Returns the string representation of this object, formatted according to locale-specific conventions.
Examples How to use this example.
0コメント