Skip to content

Python development

Joachim Metz edited this page Jul 14, 2022 · 1 revision

libfsntfs comes with Python-bindings named pyfsntfs.

Below are examples how use pyfsntfs. They assume you have a working version of pyfsntfs on your system. To build pyfsntfs see Building.

Import

To be able to use pyfsntfs in your Python scripts add the following import:

import pyfsntfs

Get version

The get_version() module function can be used to retrieve the version of the pyfsntfs.

pyfsntfs.get_version()

This will return a textual string (Unicode) that contains the libfsntfs version. Since pyfsntfs is a wrapper around libfsntfs it does not have a separate version.

Also see

import pyfsntfs

help(pyfsntfs)
help(pyfsntfs.None)
Clone this wiki locally