开发者

Delphi XE - File Deleted Notification Event:

开发者 https://www.devze.com 2023-04-06 05:28 出处:网络
I need to delete a physical file on a server via a client action, then notify a remote database of the file deletion event - would like this to happen entire开发者_高级运维ly on serverSide.

I need to delete a physical file on a server via a client action, then notify a remote database of the file deletion event - would like this to happen entire开发者_高级运维ly on serverSide.

Later versions of Delphi have exposed a lot of directory services that previously had been locked away in WinAPI calls. Currently I'm using Delphi XE but I'm not up to speed on all the new features (migrated from Delphi 7...)

Is there an event of some kind in the Delphi XE file/directory services that I can grab on the server side when a file is deleted, so I can notify interested parties of the delete event?

TIA


AFAIK, you can find a unit called: IOSys

It contains lots of stuff to play with folders and files. But there's no notification included.

You still need to use the function: FindFirstChangeNotification

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号