# VerifyError on listing directory in AIR / Flex

**URL:** <https://forum.kirupa.com/t/verifyerror-on-listing-directory-in-air-flex/274612>\
**Category:** flash\
**Created:** [November 1, 2008, 6:59am UTC](https://forum.kirupa.com/t/verifyerror-on-listing-directory-in-air-flex/274612 "2008-11-01T06:59:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simultech](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@simultech](https://forum.kirupa.com/u/simultech)\
**Post date:** [November 1, 2008, 6:59am UTC](https://forum.kirupa.com/t/verifyerror-on-listing-directory-in-air-flex/274612/1 "2008-11-01T06:59:46Z")

</div>

Hi All,

Just testing out attempting to read a directory, but cannot seem to. The error I get is:

```auto
VerifyError: Error #1068: flash.filesystem.File and flash.filesystem.File cannot be reconciled.

```

I’ve checked both Google and documentation and I have no idea what it is doing. My code is:

```auto
var directory:File = File.applicationDirectory;
var list:Array = directory.getDirectoryListing();

```

Has anyone run into this issue before? Compilation is fine, its only when the application is run. I am using up to date Flex and its set as a desktop application to AIR.

Any help greatly appreciated.  
cheers
