Skip to content

Commit 0021c0f

Browse files
author
Tsvetan Raikov
committed
Fixes time mismatch issues with prepare when using symlinks
1 parent 90f3eee commit 0021c0f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

lib/services/project-changes-info.ts

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ export class ProjectChangesInfo {
102102
if (fileStats.mtime.getTime() > mtime) {
103103
return true;
104104
}
105+
let lFileStats = this.$fs.getLsStats(filePath).wait();
106+
if (lFileStats.mtime.getTime() > mtime) {
107+
return true;
108+
}
105109
if (fileStats.isDirectory()) {
106110
if (this.containsNewerFiles(filePath, skipDir, mtime)) {
107111
return true;

test/stubs.ts

+4
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ export class FileSystemStub implements IFileSystem {
121121
return undefined;
122122
}
123123

124+
getLsStats(path: string): IFuture<IFsStats> {
125+
return undefined;
126+
}
127+
124128
isEmptyDir(directoryPath: string): IFuture<boolean> {
125129
return Future.fromResult(true);
126130
}

0 commit comments

Comments
 (0)