Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26159

Windows: File.getDirectoryListing() returns empty array for file or non-existent directory.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.3.0
    • Fix Version/s: Release 8.0.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2018 Sprint 15 SDK, 2016 Sprint 17 SDK, 2018 Sprint 18 SDK, 2018 Sprint 19 SDK

      Description

      Windows: File.getDirectoryListing() returns empty array for file or non-existent directory.

      // FIXME Windows returns empty array
      it.windowsBroken('returns null for non-existent directory', function () {
      	var nonExistentDir = Ti.Filesystem.getFile('madeup');
      	var result = nonExistentDir.getDirectoryListing();
      	should(nonExistentDir).be.ok;
      	should(nonExistentDir.exists()).eql(false);
      	should(result).eql(null);
      });
       
      // FIXME Windows returns empty array
      it.windowsBroken('returns null for file', function () {
      	var file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'app.js');
      	var result = file.getDirectoryListing();
      	should(file).be.ok;
      	should(file.exists()).eql(true);
      	should(file.isFile()).eql(true);
      	should(result).eql(null);
      });
      

      Expected: null should be returned for file or non-existent directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6421
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code