Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 8ff4739

Browse files
committed
rework per discovery and cleanup
1 parent b4f32f8 commit 8ff4739

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/filesystem/FileSystem.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ define(function (require, exports, module) {
9292
var Directory = require("filesystem/Directory"),
9393
File = require("filesystem/File"),
9494
FileIndex = require("filesystem/FileIndex"),
95+
FileSystemError = require("filesystem/FileSystemError"),
9596
WatchedRoot = require("filesystem/WatchedRoot");
9697

9798
/**
@@ -886,7 +887,7 @@ define(function (require, exports, module) {
886887
callback = callback || function () {};
887888

888889
if (!watchedRoot) {
889-
callback("Root is not watched.");
890+
callback(FileSystemError.ROOT_NOT_WATCHED);
890891
return;
891892
}
892893

src/filesystem/FileSystemError.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ define(function (require, exports, module) {
4444
TOO_MANY_ENTRIES : "TooManyEntries",
4545
ALREADY_EXISTS : "AlreadyExists",
4646
CONTENTS_MODIFIED : "ContentsModified",
47-
PATH_WATCHING_NOT_SUPPORTED : "PathWatchingNotSupported"
47+
PATH_WATCHING_NOT_SUPPORTED : "PathWatchingNotSupported",
48+
ROOT_NOT_WATCHED : "RootNotBeingWatched"
4849

4950
// FUTURE: Add remote connection errors: timeout, not logged in, connection err, etc.
5051
};

src/filesystem/impls/appshell/AppshellFileSystem.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,7 @@ define(function (require, exports, module) {
578578
*
579579
* @type {boolean}
580580
*/
581-
exports.recursiveWatch = (appshell.platform === "mac" ||
582-
(appshell.platform === "win" && navigator.userAgent.indexOf("Windows NT 5.") === -1));
581+
exports.recursiveWatch = (appshell.platform === "mac" || appshell.platform === "win");
583582

584583
/**
585584
* Indicates whether or not the filesystem should expect and normalize UNC

0 commit comments

Comments
 (0)