Fix WOFileUtils

This commit is contained in:
VirtuBox
2019-10-26 01:30:52 +02:00
parent 7765b2ce84
commit f3f0573954
2 changed files with 7 additions and 6 deletions

View File

@@ -173,6 +173,7 @@ Apps & Tools shipped with WordOps :
- [ClamAV](https://github.com/Cisco-Talos/clamav-devel) - [ClamAV](https://github.com/Cisco-Talos/clamav-devel)
- [cheat.sh](https://github.com/chubin/cheat.sh) - [cheat.sh](https://github.com/chubin/cheat.sh)
- [ProFTPd](https://github.com/proftpd/proftpd) - [ProFTPd](https://github.com/proftpd/proftpd)
- [nginx-ultimate-bad-bot-blocker](https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/)
Cache Plugins supported by WordOps : Cache Plugins supported by WordOps :

View File

@@ -280,7 +280,7 @@ class WOFileUtils():
""" """
Searches for string in file and returns True or False. Searches for string in file and returns True or False.
""" """
if os.path.isfile(fnm): if os.path.isfile('{0}'.format(fnm)):
try: try:
Log.debug(self, "Finding string {0} to file {1}" Log.debug(self, "Finding string {0} to file {1}"
.format(sstr, fnm)) .format(sstr, fnm))