Method and device for carrying out file operation

The invention provides a method for carrying out a file operation. The method comprises the following steps of: acquiring a file operation request including invoker input parameter, wherein the input parameter comprises file paths; searching a relative file object analysis routine in an object manager according to the file path; generating an I/O request packets according to the file object analysis routine if the relative file object analysis routine is found out, and transmitting the packets to an original address of the lower layer device of the preset file system. The method in the invention can increase and drive the counterforce capability of a rogue program and avoid potential probability of incompatibility among safe software due to interference of file operation.