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

TiAPI: Titanium.Filesystem.File setHidden() throws an exception

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.1.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      Titanium.Filesystem.File's setter method setHidden(), throws exception (setHidden method not found) in Android platform and is not hiding the files in iOS.

      Provided test case

      var rootDirectoryPath = Titanium.Filesystem.getExternalStorageDirectory();
      var directoryPath = String.format('%s%s', rootDirectoryPath, 'ImagesFolder');
      var directory = Titanium.Filesystem.getFile(directoryPath);
      if (!directory.exists()) {
          directory.createDirectory();
      }
      var imagePath = String.format('%s%s%s', directoryPath, fileSeperator, 'image.png');
      var file = Titanium.Filesystem.getFile(imagePath);
      file.write(image);
      file.setHidden(true);
      

      Simplified test case

      var file = Titanium.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, '', 'KS_nav_ui.png');
      file.setHidden(true);
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ankitthakur Ankit Thakur
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration