From 2972efbdfff4324d5f3ed10beb742551048a8673 Mon Sep 17 00:00:00 2001 From: "David Humphrey (:humph) david.humphrey@senecacollege.ca" Date: Thu, 30 Mar 2017 20:54:16 -0400 Subject: [PATCH] Fix regression from #633 with FileSystem.getFileForPath is not a function error --- src/filesystem/impls/filer/FilerFileSystem.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/filesystem/impls/filer/FilerFileSystem.js b/src/filesystem/impls/filer/FilerFileSystem.js index 7f752af5c..5b27a2e04 100644 --- a/src/filesystem/impls/filer/FilerFileSystem.js +++ b/src/filesystem/impls/filer/FilerFileSystem.js @@ -13,9 +13,8 @@ define(function (require, exports, module) { Content = require("filesystem/impls/filer/lib/content"), Async = require("utils/Async"), BrambleEvents = require("bramble/BrambleEvents"), - FileSystemCache = require("filesystem/impls/filer/FileSystemCache"), - LiveDevMultiBrowser = require("LiveDevelopment/LiveDevMultiBrowser"); - + FileSystemCache = require("filesystem/impls/filer/FileSystemCache"); + var fs = BracketsFiler.fs(), Path = BracketsFiler.Path, watchers = {}; @@ -194,13 +193,14 @@ define(function (require, exports, module) { if(stat.isFile) { BlobUtils.rename(oldPath, newPath); BrambleEvents.triggerFileRenamed(oldPath, newPath); + return callback(); } + // This is a dir, refresh our cache for child paths to get updated. FileSystemCache.refresh(function(err){ if(err){ return callback(err); } - LiveDevMultiBrowser.reload(); callback(); }); });