Python extension allowing some basic manipulation over Win32 junction points, symbolic links, and hard links.
Python C
Switch branches/tags
Nothing to show
Clone or download
juntalis Fix reparse point buffer structures
Not sure how I missed this. Addresses issue #8.
Latest commit 4805c4e Jan 25, 2017
Permalink
Failed to load latest commit information.
contrib
ntfslink Fix reparse point buffer structures Jan 25, 2017
.gitignore
PKG-INFO
ReadMe.md
setup.py
test.py Implemented symlinks and fixed up code a bit. Jun 11, 2013

ReadMe.md

Python NTFS Links Module

What is it?

A ctypes based Python module for manipulating reparse points (junctions/symbolic links/etc) and hard links on the Windows version of Python. Originally this was written to be a C-extension, but ctypes appears to be the more portable solution. At the moment, this project is still a work in progress, and is being rewritten from the ground up to utilize on ctypes. It currently supports the manipulation of junction points, symbolic links, and the ability to check for support of symbolic links.

While symbolic links are officially only supported on Windows Vista and higher, Windows XP users can also utilize them by installing a custom driver:

I have nothing to do with that project, but I did go ahead and add logic for checking for it in the functions dealing with symbolic link support.

Installation

Ignore below. The setup doesn't work at the moment, as I've begun rewriting this project from scratch. If you need some functionality already implemented, feel free to just grab what you need from the code.

Standard module building command.

To build in the local directory:

setup.py build

Or to install:

setup.py install

Credits

Much of the code was derived by reimplementing pieces of the reparselib, who's full source code can be found at reparselib.

Additionally, thanks goes out to the following Stack Overflow users for explaining a few concepts/methods to me:

TODO:

See the project issues.