Overview
Comment:Fix typo in SQLite storage
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 3b688a1ac815330f7fb89684479ce8ea6a79a07a3f5115f7fb42a6f66483687d
User & Date: bohwaz on 2022-11-14 02:03:53
Other Links: branch diff | manifest | tags
Context
2022-11-14
02:04
Fix return in SQLite storage check-in: 1b0425d5a3 user: bohwaz tags: dev
02:03
Fix typo in SQLite storage check-in: 3b688a1ac8 user: bohwaz tags: dev
02:00
WebDAV: use X-Sendfile if available, fix NextCloud permissions check-in: 7cd460fe05 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Files/Storage/SQLite.php from [c1b6e51bbe] to [6b19b48dd9].

173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
		}

		return $files;
	}

	static public function getDirectorySize(string $path): int
	{
		return DB::getInstance()->firstColumn('SELECT SUM(size) FROM @files WHERE (parent = ? OR parent LIKE ?) AND type = ?;', $path, $path . '/%', File::TYPE_FILE);
	}

	static public function exists(string $path): bool
	{
		return DB::getInstance()->test('files', 'path = ?', $path);
	}








|







173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
		}

		return $files;
	}

	static public function getDirectorySize(string $path): int
	{
		return DB::getInstance()->firstColumn('SELECT SUM(size) FROM files WHERE (parent = ? OR parent LIKE ?) AND type = ?;', $path, $path . '/%', File::TYPE_FILE);
	}

	static public function exists(string $path): bool
	{
		return DB::getInstance()->test('files', 'path = ?', $path);
	}