diff --git a/server.js b/server.js index 2c242727..f8524e8f 100644 --- a/server.js +++ b/server.js @@ -637,6 +637,7 @@ CloudServer._fillJSON = function(pStats, pFiles){ } }else{ var lQuyery = CloudServer.Queries[DirPath]; + DirPath = DirPath.substr( DirPath.lastIndexOf('/') ); DirPath += '.json'; CloudServer.Queries[DirPath] = lQuyery; /* в обычном режиме(когда js включен