473,573 Members | 3,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

moving files across devices

Hi folks,

I'm trying to move files across devices on my linux box. Here's what
I had:
os.rename(sFile Name, dir + newName)
which gives:

Traceback (most recent call last):
File "/usr/local/scripts/sort_mp3s.py", line 68, in ?
localSort(i, defaultSaveDir)
File "/usr/local/scripts/sort_mp3s.py", line 34, in localSort
os.rename(sFile Name, dir + newName)
OSError: [Errno 18] Invalid cross-device link

ok, so that doesn't work. is there another method?

Matt Price ma********@utor onto.ca
History Department, University of Toronto
(416) 978-2094

please don't use the following addresses: ze**@derailleur .org
aa******@derail leur.org
Jul 18 '05 #1
1 1604
Matt Price <ma********@uto ronto.ca> wrote:
Hi folks,

I'm trying to move files across devices on my linux box. Here's what
I had:
os.rename(sFile Name, dir + newName) ... ok, so that doesn't work. is there another method?

Jul 18 '05 #2

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

Similar topics

by: Mark | last post by:
This seems to be another ploy by Microsoft to push the competition out. Why in the world would MS pick a file extension of .PDB for their DotNet project files, when Palm has been using this file extension for years! As a consequence to "us" consumers, who also use Palm OS devices, we now have to redefine our file extension of PDB to be Palm...
by: Burt | last post by:
My company needs to move a 30 Gig SQL Server across the country as soon as possble on July 1. Turns out moving the full db across the network takes a few hours. I'd like to move a full copy of db a week ahead of time, and then just move either a differential backup(s) or transaction log with with the week's new data on July 1. Can anyone...
by: jqpdev | last post by:
Hello all, I've been developing web apps using Borland's websnap technology which is built upon asp technology. I'm tranisitioning to ASP.NET VS.NET and need some techniques/best practices to assist in the transition. I've created my apps/sites using a chunking method based on a template. Chunks of HTML and JScript are stored together in...
by: fuzzybr80 | last post by:
I am using MySQL 5.0 with a number of innodb tables whose ibdata files are growing quite quickly and filling up the /var partition (file is /var/mysql/ibdata1). Earlier on I followed instructions in the docs to create a new ibdata file on a bigger partition /disk2/var/mysql/ibdata2) and set that to autoextend instead. However I would like...
by: David | last post by:
How do I share code across files in C#, without including a reference to a class library. Here's what I want to do. I have a device I want to talk to. It's a machine in a factory. It can talk on a serial port, or over ethernet. Either way it's talking, it sends the same data. So, I encapsulate the data structure in a class, and I stick...
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're doing a proof-of-concept on WCF whereby we have a Windows form client and a Server. Our server is a middle-tier that interfaces with our SQL 05...
by: jonny | last post by:
I am using Visual Web Developer with ASP and VB.NET to build website. I would like to have Text moving across my screen that says "Example text moving across screen for viewers to read.". I am new to web and VB.NET programming so please help me with step by step. (Just when I got used to VB 6.0 now I have to starting learning VB.NET)
by: Claire | last post by:
For localization, I create resx files containing stringlists. I have several in my project, attached to individual projects/dlls Since moving across my application doesnt seem to be able to find the resources I've attached. Is there any way I can find them so I can check they're named ok? thanks
by: mcjason | last post by:
I saw something interesting about a grid pair puzzle problem that it looks like a machine when you find each that work out the way it does and say with all the others that work out the way they do together overlapping common pieces but say connected each working out as connected, but together as connected it's connected with the others...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.