aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichaIng <micha@dietpi.com>2022-01-26 15:28:48 +0100
committerMichaIng <micha@dietpi.com>2022-01-26 16:11:50 +0100
commitba1338e6800d20311155be5f3a5d8c5738e88a62 (patch)
treea15fa99eb1bb3a97086d17c29ab7bf37c5d6da6d /lib
parenta145edd00db95135bee6f584e21301267fb5ac16 (diff)
downloadnextcloud-server-ba1338e6800d20311155be5f3a5d8c5738e88a62.tar.gz
nextcloud-server-ba1338e6800d20311155be5f3a5d8c5738e88a62.zip
Return 404 when AJAX tries to list dir content but file given
Due to a code mistake, the expected 404 return when AJAX tries to list a directory content with a non-directory file path given, does not happen. It instead fails with another exception. This commit restores the original intention to return 404 in the first place when passing a non-directory path with the "dir" parameter. Signed-off-by: MichaIng <micha@dietpi.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Filesystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php
index a9b1b87c8e7..fb300134c86 100644
--- a/lib/private/Files/Filesystem.php
+++ b/lib/private/Files/Filesystem.php
@@ -835,7 +835,7 @@ class Filesystem {
* @param string $path
* @param boolean $includeMountPoints whether to add mountpoint sizes,
* defaults to true
- * @return \OC\Files\FileInfo|bool False if file does not exist
+ * @return \OC\Files\FileInfo|false False if file does not exist
*/
public static function getFileInfo($path, $includeMountPoints = true) {
return self::$defaultInstance->getFileInfo($path, $includeMountPoints);