To display a read error when the source file is used by other applications while transfering using MQFTE?

ぃ、小莉子 提交于 2019-12-06 12:29:56

问题


I need to display a read error when the source file is being used by other applications.

For example : Source filename: test.txt Content: Test file.

The above content is stored in the txt file and saved.

The txt file is opened and is modified as below but not saved.

Test file is modified.

When i invoke the transfer now i should get a read error, instead the file gets transferred with the last saved content(Test file).

What can i do to display a error message?

This case was tested in unix and windows.

来源:https://stackoverflow.com/questions/5870083/to-display-a-read-error-when-the-source-file-is-used-by-other-applications-while

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!