Scripts Index
Python File Management  

Copying and Pasting Directories and Files

download download home home   report broken
important script information
company name:
code.activestate.com
license: Free
minimum requirements: Python
functional limitations:
Copying and Pasting Directories and Files description
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. They ignore links and anything else that is not a directory or a file. The data returned from copy_dir() is in a format that paste_dir() can understand. A design note: what you get back from copy_dir() may be different whether or not you have a path separator at the end of the path; paste_dir() makes use of that feature (whether or not you want the first folder to be created). The functions can easily be modified to not include sub-directories in the returned package, and errors caused by accessing to files or directories can also be ignored with some simple editting. Also, note the asserts in the functions; these functions are designed to crash hard so that the calling code has to take care of the errors.
Similar scripts
Convert PDF to TIFF (Popularity: ) : This script is a very short code snippet illustrating how to convert individual pages of PDF documents to TIFF files, one TIFF file per page. It works only on Mac OS X with PyObjC installed.As a recipe the code is ...
Count PDF pages (Popularity: ) : Count PDF pages script is a simple way to count the pages of a PDF the pure Python way.
Counting pages of PDF documents on Mac OS X (Popularity: ) : Given that PDF is a "native" data format on Mac OS X, it is very easy to get access to some properties of such documents. One is the number of pages. Using Python the necessary code to do this is ...
Iterate over .MP4 atoms (Popularity: ) : This script yields the atoms contained in an MP4 file. Mostly is used for extracting the tags contained in it (artist, title etc) using a convenience class (M4ATags). This script could be implemented as an generator.
Counting pages of PDF documents on Mac O (Popularity: ) : Given that PDF is a "native" data format on Mac OS X, it is very easy to get access to some properties of such documents. One is the number of pages. Using Python the necessary code to do this is ...
Disk (Popularity: ) : This script provides a simple simulation of secondary memory and is primarily designed to provide a driver interface to a virtual hard drive. The interface is simple and allows the simulation of IO errors. Also provided are methods that allow ...
Cross Platform Excel Parsing With Xlrd (Popularity: ) : This script easily extract data from microsoft excel files using this wrapper class for xlrd. The class allows you to create a generator which returns excel data one row at a time as either a list or dictionary. This script ...
A Singleton log file creator (Popularity: ) : This class is a basic Singleton log file creator. It allows separate classes/modules to log their activities to the same file (even the same line if they want to).This is a quite basic log file creator, intended to assist in ...
Backup your files (Popularity: ) : Backup your files script makes backup versions for your files.It can be used for non-python source code also.
A Python script to test download mirrors (Popularity: ) : The concept of the script is straightforward: read the mirrors page from RedHat's web site, make a list of all the mirrors, test how long it takes to download from each, and present a sorted list of the results.

The first ...

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar Software
Word Search and Replace Tool (Popularity: ) : Word Search and Replace Tool is a fast and reliable software tool adept at finding and replacing words and phrases in word documents. The tool can find and replace multiple words and phrases in multiple word files. The software is ...
Acronis Backup and Recovery 10 Advanced Server SBS Edition build (Popularity: ) : Developed for Microsoft Small Business Server (SBS), Acronis Backup & Recovery 10 Advanced SBS Edition allows small businesses to make data recovery; disaster recovery and system restoration in minutes, not hours or days. Based on patented technologies, Acronis Backup & ...
PowerPoint Search and Replace Tool (Popularity: ) : PowerPoint Search and Replace Tool is a fast and reliable Find and Replace software tool developed to carry out Find and Replace and Formatting tasks in various types of PowerPoint files. Purpose of the software is to save time and ...
Text Search and Replace Tool (Popularity: ) : Text Search and Replace Tool is an efficient find and replace tool developed to perform find and replace and formatting tasks in MS word files. The software allows the user to find and replace multiple words and phrases in multiple ...
RQ Search and Replace (Popularity: ) : Find and replace text in files - batch text replacement software utility for Windows.
Batch search and replace in text files an MS Word documents.
(MSWord 2000 or later must be installed).
Batch search and replace in MS Word text, ...

ExcelPipe Search and Replace (Popularity: ) : Search and Replace multiple Microsoft Excel spreadsheets. Change hyperlinks and UNC paths when servers get renamed; update contact details such as names, addresses and phone numbers; translate spreadsheets with find/replace lists; update Microsoft SharePoint documents or Microsoft Namespace Server mappings.
...

PowerPointPipe Search and Replace (Popularity: ) : Search and Replace multiple Microsoft PowerPoint presentations. Change hyperlinks and UNC paths when servers get renamed; update contact details such as names, addresses and phone numbers; translate presentations with find/replace lists; update Microsoft SharePoint documents or Microsoft Namespace Server mappings.
...

Word Find and Replace Standard (Popularity: ) : This software that makes the tasks of finding and replacing words and phrases in different versions of Microsoft Word much easier. It also makes it easier for you to do various sorts of formatting. The software supports various file formats ...
Word Find and Replace Professional (Popularity: ) : Word Find & Replace Professional is software that makes the tasks of finding and replacing words and phrases in different versions of Microsoft Word much easier. It also makes it easier for you to do various sorts of formatting. The ...
See-and-Type (Popularity: ) : See-and-Type is a series of virtual keyboard models (Standard, Compact, and UltraCompact) that assist people to enter text with the mouse, without a conventional keyboard. See-and-Type uses a special color scheme for easy identification of the text keys. See-and-Type is ...
ad


Rate me
supported os
Windows, Linux, Mac OS, BSD, Solaris
stats
downloads 3
version 1.0
size in Kb
popularity   
527/374777
user rating 0/10
New Scripts
Popular Scripts
Latest Reviews