aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer
diff options
context:
space:
mode:
Diffstat (limited to 'lib/observer')
-rw-r--r--lib/observer/src/ttb.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/observer/src/ttb.erl b/lib/observer/src/ttb.erl
index 2498be150d..66b8d049d1 100644
--- a/lib/observer/src/ttb.erl
+++ b/lib/observer/src/ttb.erl
@@ -668,8 +668,11 @@ fetch(Localhost,Dir,Node,MetaFile) ->
Files = get_filenames(Node,MetaFile),
lists:foreach(
fun(File0) ->
- File = filename:join(Dir,filename:basename(File0)),
- file:rename(File0,File)
+ %%Other nodes may still have different CWD
+ {ok, Cwd} = rpc:call(Node, file, get_cwd, []),
+ File1 = filename:join(Cwd, File0),
+ File = filename:join(Dir,filename:basename(File1)),
+ file:rename(File1,File)
end,
Files);
false ->