mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 23:03:45 +02:00
If folder does not exist, reload the file manager index
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -63,6 +63,11 @@ class FileManager {
|
||||
if (_.isFunction(next)) {
|
||||
return next(new Error('Failed to load file listing.'));
|
||||
}
|
||||
|
||||
if ((path !== '' && path !== '/') && jqXHR.status === 404) {
|
||||
return this.list('', next);
|
||||
}
|
||||
|
||||
swal({
|
||||
type: 'error',
|
||||
title: 'File Error',
|
||||
|
||||
Reference in New Issue
Block a user