navigateUp method
Navigates up one directory level.
Removes the last directory from the path history and refreshes the file list.
Implementation
Future<void> navigateUp() async {
if (pathHistory.length > 1) {
pathHistory.removeLast();
setState(() => currentPath = pathHistory.last);
widget.onDirectoryChanged.call(currentPath);
await refreshFiles();
}
}