on ‎2018 Aug 03 2:07 PM
I want to get the list of zip files from Media Folder /custom/coty/cotycore/resources/test/media/ in junit but when we check the condition file is directory then path is taking as false. Please provide the solution.
Request clarification before answering.
Hi upendar,
Please check if the directory is accessible/correct using exists() method. From File.isDirectory() documentation we can read that: "Returns:
true if and only if the file denoted by this abstract pathname exists and is a directory; false otherwise".
Working from junit test class shouldn't matter in this scenario.
Hope this helps.
Best Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.