error 75 path/file access lotus notes while deleting files - path

I have a lotus notes agent which takes some files from the server and does some processing and then deletes those files.
For deleting we have used the Kill command. It was working fine, but now we are getting the error "path/file access". Could anyone please help me on this.

If the files are NSF files and your code is opening them as NotesDatabase objects via the server, the files on disk will not be closed even after you are done using them and the objects are gone. That's because the server maintains a cache of open NSF files. You cannot delete the files until they are out of the cache. (This may or may not be true if you specified "" instead of the server name when you opened the NotesDatabase object. I don't recall, but if the workaround had been as easy as just opening locally using "", I think we would have done that.)
To get around this in the past, what I have done is just leave the files on disk and write another agent that runs once per day to clean them up. It's ugly, but it was the only way to deal with the problem.

Related

We are using ResilioSync on QNAP NAS and one of our NAS got hit by QLocker ransomware, what can we do?

We got hit by the QNAP QLocker ransom ware on our NAS and it encrypted a lot of files (datasets) that we are sharing by ReslioSync.
Is there some way to restore the files?
Yes if you are quick enough to deal with it before the default ResilioSync archiving time of 30 days.
Any other sync that shares the same file will have the unencrypted file in its Resilio .sync/Archive folder. You can simply copy the contents of Archive back to the top level, as long as you are OK with overwriting any file that may have been modified and stored in the archive as well.
If you want to get fancier, you can check the dates and you will see that QLocker encrypted most files within a short period.

Recover lost Umbraco Forms files from App_Plugins

Suddenly the files inside the folder App_Plugins/UmbracoForms have vanished and I cannot seem to recover them. The files include UmbracoForms.config, version, installed as well as the most important form data inside the Data folder.
Checking the file/folder history it seems that the files were last modified by the Application Pool user identity, meaning the website deleted it's own files.
Why would this happen and how is it possible to recover these files?
I've never come across Forms/Umbraco deleting anything out of the App_Plugins folder without a user uninstalling the plugin in the back office.
Is it possible that someone has done a publish via VS or similar that's cleared the folder and replaced it?
In terms of getting the files back, if they've been deleted, you should in theory be able to recover them from your hosting company's back-ups (assuming the site is being regularly backed up).

MVC5 Changes on Server not being reflected

Whenever I update one of my views on the server, for example if I have the words "Hello World" printed out and then I go change it to "Hi World" it doesn't reflect.
The old text is still there. The weird part is even if I delete the whole view file the page still loads. I feel that something is being cached but I do not know what or where to look for it. On my local machine it all works, in develop and release mode, but on the server when I push the published version of the code, the changes don't take, any help as to why is most appreciated.
This is on a shared host server
EDIT:
If I take all the files and move them to a temp folder, load the site so it crashes, and then move the files back to original location then the changes kick in.
This is not a browser cache, I ensured by deleting any and all history and even loading it on a new browser.
The files are 100% updated because I updated them directly on the server to ensure its not something to do with publishing.
This is maybe because of this.

How to unlock a file and delete it?

I have a program that uploads files to a ftp server. If upload is complete then I delete the files. Occasionally the files are not deleted and because the upload is automated I get an infinite loop where 100 copies of the file reach the server. If I try to manually delete the file from explorer I'm able to do it but for some reason the Deletefile command from my app doesn't work.
I've tried raising last OSError and I get nothing.
The files are stored on a mapped drive. Is there any workaround? If I upload 30 files to a ftp server sometimes one or two files cannot be deleted after loading them to the server.
Is there any way to close the file even if it is opened from another program? Something like unlocker does?
How can i see if my application is locking the file? I haven't implemented any locking mechanism inside the app.
Thanks.

iOS:How to check if an directory already exists on the FTP server while uploading?

I am working on an App, in which I want to upload images and pdf to the FTP server. I am using this reference ref.All is working good. The images and pdf are getting uploaded on the server with proper names and sizes.
But, now I want to check if the directory is already exists on the server or not. I am not able to get it to work with this library.
So my question is that how to check directory on ftp,if directory is there then upload the files if not then first create directory on ftp and then upload files onto that directory?
Any Ideas.. ? Any help will be appreciated.
Different FTP servers will answer the LIST request in differing ways, so there is no single answer to this question. RFC959 says on the matter:
Since the information on a file may vary widely from system
to system, this information may be hard to use automatically
in a program, but may be quite useful to a human user.
Using the CWD request to change into the directory in question, and detecting a successful response will detect the directory, however that leaves you in that directory as a potentially unrequired side effect.
For these reasons, as well as others, you may find more modern protocols such as SSH (which includes a file transfer feature) to be more useful. You may find the DLSFTPClient CocoaPod useful.
M.

Resources