Feature/optimalize development env#62
Conversation
blcham
left a comment
There was a problem hiding this comment.
IMHO, some parts are a little confusing.
I did not get the chance to test it, but I wonder how it works if I just move a file or a directory. The other situation is when I do the following:
- I make copy of file A outside of the SPipes scripts dirs
- I modify A
- I restore A from backup (I just replace new A with old one from backup)
| OntoDocManager.addSPINRelevantModel(file.toAbsolutePath().toString(), model); | ||
| } | ||
|
|
||
| filesModificationTime.put(file, Instant.now()); |
There was a problem hiding this comment.
I am confused here what filesModificationTime means here. You say it is modification time of a file, but still instead of that you put Instant.now() ... why we are not putting here the actual modification time of the file ?
Moreover, remember that we do not need to track the modification time if keepUpdated=false.
| } | ||
|
|
||
| private static boolean wasModified(Path fileName){ | ||
| private static boolean wasModifiedOrNewlyAdded(Path fileName){ |
There was a problem hiding this comment.
IMHO, it is confusing to call something fileName if it represents file path. The file name is referred to as the last part of the file path. I suggest calling it filePath or even better file.
There will be NoSuchFileException.
This situation works properly. |
|
@MSattrtand we should use or close this PR |
No description provided.