Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Open a Folder in Air 2.7

$
0
0

Hello there,

When Air 2.0 was released, it was possibile to do something like this (c:\mydirectory\mysubdirectory has to be there obviously):

 

var file:File = new File("c:\\mydirectory\\mysubdirectory");

file.openWithDefaultApplication();

 

and the directory would be opened by using (for exampe) in windows the file explorer

 

In air 2.7 this code throws an error (that is a security error, in fact if I open a temp directory created with createTempDirectory it works)

"Illegal file path"

 

Now, please, tell me how can I harm the user by simply opening a directory on his hard disk!

How can I open a directory on his hard disk without getting this error?

Thanks in advance


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>