Project Home

ipath.py

Abstract

A platform-independent path encapsulation class.

Table of Contents

Description

A platform-independent path encapsulation class.

This module provides one class that hides the differences between path, all depending on the platform-specific details. For example, under Windows, the filenames are compared case-insensitively, and a drive letter is used. The filenames can still be rendered according to how they were initialized.

In particular, the following details are abstracted:

  1. Case-sensitiveness; the path stores case-sensitive paths, but compares case-insensitively for filesystems that don't support it (i.e. under MS Windows). This also takes care of the case-sensitiveness for drive letters;
  2. Path separators: slashes and backslashes are not kept and are add upon conversion to string only;

More why?

Please Donate!

Important

This computer program or library is provided for free. I am aware that some of the programs that I provide for free allow people to get their work done faster or better, save them time and money. If you are using this program for benefit, especially if you are using it within a commercial environment and it saves you time or work, please consider making a donation by sending me a book from my Amazon Wishlist or by a direct donation to my company's PayPal account by clicking on the link below.

Download

Download program here.