Module ida_diskio
[frames] | no frames]

Module ida_diskio

IDA Plugin SDK API wrapper: diskio

Classes
  generic_linput_t
Proxy of C++ generic_linput_t class
  linput_buffer_t
Proxy of C++ linput_buffer_t class
Functions
char const *
idadir(subdir)
char *
getsysfile(filename, subdir)
char const *
get_user_idadir()
int
get_ida_subdirs(subdir, flags=0)
bool
get_special_folder(csidl)
FILE *
fopenWT(file)
FILE *
fopenWB(file)
FILE *
fopenRT(file)
FILE *
fopenRB(file)
FILE *
fopenM(file)
FILE *
fopenA(file)
 
eclose(fp)
char *
qlgetz(li, fpos)
linput_t *
open_linput(file, remote)
linput_t *
create_generic_linput(gl)
linput_t *
create_memory_linput(start, size)
linput_type_t
get_linput_type(li)
PyObject *
enumerate_files(path, fname, callback)
Enumerate files in the specified directory while the callback returns 0.
linput_t *
create_bytearray_linput(s)
 
close_linput(li)
Variables
  CFG_SUBDIR = 'cfg'
  IDC_SUBDIR = 'idc'
  IDS_SUBDIR = 'ids'
  IDP_SUBDIR = 'procs'
  LDR_SUBDIR = 'loaders'
  SIG_SUBDIR = 'sig'
  TIL_SUBDIR = 'til'
  PLG_SUBDIR = 'plugins'
  IDA_SUBDIR_IDP = 1
  CSIDL_APPDATA = 26
  CSIDL_LOCAL_APPDATA = 28
  CSIDL_PROGRAM_FILES = 38
  CSIDL_PROGRAM_FILES_COMMON = 43
  CSIDL_PROGRAM_FILESX86 = 42
  LINPUT_NONE = 0
  LINPUT_LOCAL = 1
  LINPUT_RFILE = 2
  LINPUT_PROCMEM = 3
  LINPUT_GENERIC = 4
  __package__ = None
Function Details

enumerate_files(path, fname, callback)

 

Enumerate files in the specified directory while the callback returns 0.

Parameters:
  • path - directory to enumerate files in
  • fname - mask of file names to enumerate
  • callback - a callable object that takes the filename as its first argument and it returns 0 to continue enumeration or non-zero to stop enumeration.
Returns: PyObject *
None in case of script errors tuple(code, fname) : If the callback returns non-zero