@@ -43,6 +43,7 @@ export class ProjectChangesService implements IProjectChangesService {
43
43
private _newFiles : number = 0 ;
44
44
private _outputProjectMtime : number ;
45
45
private _outputProjectCTime : number ;
46
+ private _outputProjectATime : number ;
46
47
47
48
constructor (
48
49
private $platformsData : IPlatformsData ,
@@ -160,6 +161,7 @@ export class ProjectChangesService implements IProjectChangesService {
160
161
let prepareInfoFile = path . join ( platformData . projectRoot , prepareInfoFileName ) ;
161
162
this . _outputProjectMtime = this . $fs . getFsStats ( prepareInfoFile ) . mtime . getTime ( ) ;
162
163
this . _outputProjectCTime = this . $fs . getFsStats ( prepareInfoFile ) . ctime . getTime ( ) ;
164
+ this . _outputProjectATime = this . $fs . getFsStats ( prepareInfoFile ) . atime . getTime ( ) ;
163
165
return false ;
164
166
}
165
167
@@ -175,6 +177,7 @@ export class ProjectChangesService implements IProjectChangesService {
175
177
176
178
this . _outputProjectMtime = 0 ;
177
179
this . _outputProjectCTime = 0 ;
180
+ this . _outputProjectATime = 0 ;
178
181
this . _changesInfo = this . _changesInfo || new ProjectChangesInfo ( ) ;
179
182
this . _changesInfo . appFilesChanged = true ;
180
183
this . _changesInfo . appResourcesChanged = true ;
@@ -227,11 +230,9 @@ export class ProjectChangesService implements IProjectChangesService {
227
230
228
231
let fileStats = this . $fs . getFsStats ( filePath ) ;
229
232
230
- let changed = fileStats . mtime . getTime ( ) >= this . _outputProjectMtime || fileStats . ctime . getTime ( ) >= this . _outputProjectCTime ;
231
- if ( ! changed ) {
232
- let lFileStats = this . $fs . getLsStats ( filePath ) ;
233
- changed = lFileStats . mtime . getTime ( ) >= this . _outputProjectMtime || lFileStats . ctime . getTime ( ) >= this . _outputProjectCTime ;
234
- }
233
+ let changed = fileStats . mtime . getTime ( ) >= this . _outputProjectMtime ||
234
+ fileStats . ctime . getTime ( ) >= this . _outputProjectCTime ||
235
+ fileStats . atime . getTime ( ) >= this . _outputProjectATime ;
235
236
236
237
if ( changed ) {
237
238
if ( processFunc ) {
0 commit comments