Skip to contentBrand Logo
RegisterSign In
  1. SmartBear Community
  2. TestComplete
  3. TestComplete Questions

Forum Discussion

ChrisPro's avatar
ChrisPro
Contributor
11 years ago

Path : directory or file?

I would like to test in JSCRIPT if a path is a directory or a file?

1 Reply

  • HKosova's avatar
    HKosova
    Icon for Alumni rankAlumni
    11 years ago
    Hi Chris,



    You can use the aqFileSystem.CheckAttributes method to check if the path has the faDirectory flag.

Recent Discussions

  • Error when accessing license management site on Chrome

    24 hours ago
    dhundley
  • Script file not linked in Script.tcScript after adding new script – requires manual save

    Solved
    2 days ago
    David91
  • Groovy script in test complete

    Solved
    4 days ago
    ishirur
Related Content
  • Get absolute path to workspace directory in Jenkins Pipeline plugin

    5 years ago
    Marquis36
  • Groovy to delete all the files in a directory

    9 years ago
    harry21
  • Input directory tm4j-file-converter?

    5 years ago
    FabriZio
© 2025 SmartBear Software. All Rights Reserved.
  • Privacy
  • |
  • Terms of Use
  • |
  • Site Map
  • |
  • Website Terms of Use
  • |
  • Security
  • |
  • Community Terms of Service