Commit 1f00467b authored by Sigrid Suski's avatar Sigrid Suski

(#) FileSystem::Delete() does not always return success status

parent e1ee78b4
......@@ -38,6 +38,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
(!) Detecting graphics editor depends on WEBP capability
(#) Fixes for latest MySQL version
(#) FileSystem::Delete() does not always return success status
### 1.1 (31 July 2020)
......
......@@ -17,7 +17,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* @created Thu, Dec 1, 2016 by Radek Suski
* @modified 17 July 2020 by Sigrid Suski
* @modified 21 September 2020 by Sigrid Suski
*/
namespace Sobi\FileSystem;
......@@ -130,7 +130,7 @@ abstract class FileSystem
}
/**
* @param string $file
* @param $file
*
* @return bool|void
* @throws Exception
......@@ -143,7 +143,7 @@ abstract class FileSystem
throw new Exception( Framework::Txt( 'Fatal error. Trying to delete not allowed path "%s"', $file ) );
}
\Jfolder::delete( $file );
return \Jfolder::delete( $file );
}
else {
return \Jfile::delete( $file );
......@@ -163,10 +163,9 @@ abstract class FileSystem
}
/**
* *
* @param string $file
* @param $file
*
* @return bool
* @return false|string
*/
public static function Read( $file )
{
......@@ -284,7 +283,7 @@ abstract class FileSystem
*/
public static function Rmdir( $path )
{
\JFolder::delete( $path );
return \JFolder::delete( $path );
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment