FSList

Category: Python - Miscellaneous

This script allows you to manage a list of files, directories and other file system objects. Optionally recurses directories and ensure that each item in the list is a regular file. This was an experiment to see how fast an old geek who hasn't coded anything in years can pick up Python, using nothing but the docs online and the "Python in a Nutshell" book. For my "simple" experiment, I subclassed the built-in list object to handle files and directories. It quickly grew, but I learned about special methods, class properties, tarfile and zipfile and loads else.Usage is mostly explained on top. I've tested it on Windows NT, Windows XP, and Linux. It's not designed for speed, but works well enough up to a few thousand files. I've tried it on lists of more than 100,000 (/usr/*, c:*). It didn't break, but performance was poor. Date: 10 February, 2012


Files Management - Directories List - File System Objects - Files - Management - Directories

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This is my attempt at extracting the file version information from.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This function walks a directory tree starting at a specified root folder, and returns a list of all of the files (and optionally folders) that match our pattern(s).

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script can be used to clean up a directory tree irrespective of whether the directory tree contains non-empty directories.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script is a simple md5 hash utility for generating md5 checksums of files.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script presents a few basic fuctions that allow someone to copy a directory (along with its files and sub-directories) and paste it somewhere else.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This module saves and reloads compressed representations of generic Python objects to and from the disk.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script will split a file into several smaller files while at the same time hiding the original formatting of the file.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script handles arguments for small scripts that need to: - read some command line options - read some command line positional arguments - iterate over all lines of some files given on the command line, or stdin if none given - give usage message if positional arguments are missing - give usage message if input files are missing and stdin is not redirected.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Sharktorrent is an open source / freeware bittorrent client written in c.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All