Talk:Check if dir is empty: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
 
Line 1: Line 1:
This function worked great and really helped me out. Thank you very much!
This function worked great and really helped me out. Thank you very much!
== Change suggestion for ALL files ==
On line 5 of the script, <code>FindFirst $0 $1 "$0\*.*"</code> doesn't actually find ALL files. What if the file is called, "README", then it would not be found.
'''Suggestion:'''
* New: <code>FindFirst $0 $1 "$0\*"</code>
* Old: <code>FindFirst $0 $1 "$0\*.*"</code>

Latest revision as of 23:16, 29 May 2016

This function worked great and really helped me out. Thank you very much!

Change suggestion for ALL files

On line 5 of the script, FindFirst $0 $1 "$0\*.*" doesn't actually find ALL files. What if the file is called, "README", then it would not be found.

Suggestion:

  • New: FindFirst $0 $1 "$0\*"
  • Old: FindFirst $0 $1 "$0\*.*"