Timeline for Checking directory for processing
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
|
|
| Jun 18, 2015 at 12:18 | comment | added | janos | It's a bit difficult to understand what the bug is. My proposed solution is equivalent to your original program, just slightly improved. If the program doesn't behave exactly as you want, and you don't know how to fix it, then it's better to ask on Stack Overflow, including example input, and example output in contrast with your desired output. Feel free to post a link to it from here, I'll be happy to look at it and maybe answer there. In the context of this current question, I simply don't have enough information to help you. | |
| Jun 18, 2015 at 11:38 | comment | added | Daniela Morais | I liked your answer and found elegant code, I added the application. But only after I found the bug: It may be the map that the first element is an illegal file (format other than swf , gif or jpg) and the second element is an allowed format. This doesn't let you do the processing when it is valid. | |
| Jun 17, 2015 at 8:56 | comment | added | Ismael Miguel |
You're welcome. It's worth noting that jpg and jpeg file are the same, except that jpg is used for filenames in the format 8.3.
|
|
| Jun 17, 2015 at 8:34 | history | edited | janos | CC BY-SA 3.0 |
added 425 characters in body
|
| Jun 17, 2015 at 1:03 | comment | added | Ismael Miguel |
The only thing I would change is the regex to ".*(\\.swf|\\.jpe?g|\\.gif)$", and making it case-insensitive.
|
|
| Jun 16, 2015 at 21:34 | history | answered | janos | CC BY-SA 3.0 |