|
@@ -1,6 +1,14 @@
|
|
|
// Copyright (c) Jupyter Development Team.
|
|
|
// Distributed under the terms of the Modified BSD License.
|
|
|
|
|
|
+import {
|
|
|
+ Contents
|
|
|
+} from '@jupyterlab/services';
|
|
|
+
|
|
|
+import {
|
|
|
+ IIterator
|
|
|
+} from 'phosphor/lib/algorithm/iteration';
|
|
|
+
|
|
|
import {
|
|
|
ISignal
|
|
|
} from 'phosphor/lib/core/signaling';
|
|
@@ -34,7 +42,34 @@ interface IPathTracker {
|
|
|
pathChanged: ISignal<IPathTracker, IChangedArgs<string>>;
|
|
|
|
|
|
/**
|
|
|
- * The current path of the filebrowser.
|
|
|
+ * A signal emitted when the directory listing is refreshed.
|
|
|
+ */
|
|
|
+ refreshed: ISignal<IPathTracker, void>;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get the file path changed signal.
|
|
|
+ */
|
|
|
+ fileChanged: ISignal<IPathTracker, Contents.IChangedArgs>;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * A signal emitted when the tracker loses connection.
|
|
|
+ */
|
|
|
+ connectionFailure: ISignal<IPathTracker, Error>;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * The current path of the tracker.
|
|
|
*/
|
|
|
readonly path: string;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Create an iterator over the tracker's items.
|
|
|
+ *
|
|
|
+ * @returns A new iterator over the model's items.
|
|
|
+ */
|
|
|
+ items(): IIterator<Contents.IModel>;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Force a refresh of the directory contents.
|
|
|
+ */
|
|
|
+ refresh(): Promise<void>;
|
|
|
}
|