开发者

How do you set the creation and modification date for a file in AIR?

I'm creating files in an AIR application like this:

var file:File = File.documentsDirectory.resolvePath("myFile");
var stream:FileStream = new FileStream();
stream.open(file, FileMode.WRITE);
stream.writeUTFBytes(data);
stream.close();

This l开发者_高级运维eaves the creation and modification dates on created files blank. Is there are way to add this information?


Creation and modification dates are generally handled by the OS and not set by applications unless they deal specifically with that information (e.g., rsync).

What OS are you seeing this behavior on?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜