473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

are there internal functions for these ?

hi all~

i wrote some functions for copying and moving files caz' i didnt find
concret functions within the doc. but i think these operations are
simple and important so there may be some internal ones i didnt know.
anyone could figure me out ?

tks~

Oct 12 '05 #1
5 1273
there's 'os.rename' for moving (single) files, and several functions in
'shutil' for moving and copying trees of files.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDTG6EJd01MZaTXX0RAvedAJ97gFhW1/CPaWnVbtgoBZyZ2vi4hwCfa1hp
9GuyNsDSTlXqzD6jMcNUw60=
=CLIp
-----END PGP SIGNATURE-----

Oct 12 '05 #2
black wrote:
hi all~

i wrote some functions for copying and moving files caz' i didnt find
concret functions within the doc. but i think these operations are
simple and important so there may be some internal ones i didnt know.
anyone could figure me out ?


http://docs.python.org/lib/module-shutil.html

This is the second hit for the google search:

site:docs.python.org copy

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Oct 12 '05 #3
black wrote:
hi all~

i wrote some functions for copying and moving files caz' i didnt find
concret functions within the doc. but i think these operations are
simple and important so there may be some internal ones i didnt know.
anyone could figure me out ?


See the os, os.path and shutil modules for many file operations including copy and move.

Kent
Oct 12 '05 #4
black wrote:
anyone could figure me out ?


No, I suspect people would have to be a trained
psychologist to figure you out.

*wink*

--
Steven.

Oct 12 '05 #5
On 2005-10-12, black <qu********@gmail.com> wrote:
i wrote some functions for copying and moving files caz' i didnt find
concret functions within the doc. but i think these operations are
simple and important so there may be some internal ones i didnt know.
http://www.google.com/search?hl=en&q...move+copy+file

It's the very first link.
anyone could figure me out ?


I'm afraid so.

--
Grant Edwards grante Yow! Is this TERMINAL fun?
at
visi.com
Oct 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: qazmlp | last post by:
const has internal linkage in C++, but external linkage in C. Am I right ? But, linker reports multiply-defined error if the following header is included in multiple .cpp files. //...
5
by: BoonHead, The Lost Philosopher | last post by:
Does anyone know how to implement internal interface documentation for functions and parameters? I found a similair thing for proerties. For properties I found something like:...
3
by: josulliv101 | last post by:
Hi, I have a very basic question. What is meant by the term "internal function"? What makes it "internal"? -newbie
2
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class...
1
by: john doe | last post by:
The UnsafeNativeMethods seems to be the answer to most .NET developer's prayers in terms of defining interfaces and functions from the Windows API, without us having to constantly having to...
7
by: 403010705 | last post by:
I am getting an Internal Compiler Error on two template functions in VC++ 7.1. The weird thing is that in another project these functions compile and run fine. The place they are instantiated is...
3
by: al.cpwn | last post by:
do static and inline functions or members have internal linkage? I have been reading this newsgroup on google and found conflicting ideas. Can someone please help me understand why in some places...
5
by: bizt | last post by:
Hi, Below I have a simple object / function thing (still getting head round these) declaration: function MyObject() { this.alertMe = function() { alert('hello'); }; this.alertMeAgain() {
5
by: Rafe | last post by:
Hi, I've been thinking in circles about these aspects of Pythonic design and I'm curious what everyone else is doing and thinks. There are 3 issues here: 1) 'Declaring' attributes - I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.