Hello,
>From `pydoc os`:
symlink(...)
symlink(src, dst)
Create a symbolic link pointing to src named dst.
Is there any reason why this is so deliberately confusing? Why is the
target of the symlink, the think where it points *to*, called the
`src`? It seems to me that the names of the parameters should be
reversed.
Puzzled,
-Nikolaus
--
»It is not worth an intelligent man's time to be in the majority.
By definition, there are already enough people to do that.«
-J.H. Hardy
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C 2 7343
Nikolaus Rath wrote:
Hello,
>>From `pydoc os`:
symlink(...)
symlink(src, dst)
Create a symbolic link pointing to src named dst.
Is there any reason why this is so deliberately confusing? Why is the
target of the symlink, the think where it points *to*, called the
`src`? It seems to me that the names of the parameters should be
reversed.
I used the command the other day, and didn't feel the slightest confusion.
To me, the process of creating a symlink is like a "virtual copy". Which the
above parameter names reflect perfectly.
Diez
"Diez B. Roggisch" <de***@nospam.w eb.dewrites:
Nikolaus Rath wrote:
>Hello,
>>>From `pydoc os`:
symlink(...) symlink(src, dst)
Create a symbolic link pointing to src named dst.
Is there any reason why this is so deliberately confusing? Why is the target of the symlink, the think where it points *to*, called the `src`? It seems to me that the names of the parameters should be reversed.
I used the command the other day, and didn't feel the slightest confusion.
To me, the process of creating a symlink is like a "virtual copy".
Which the above parameter names reflect perfectly.
Is this interpretation really widespread? I couldn't find any other
sources using it. On the other hand:
>From ln(2):
,----
| SYNOPSIS
| ln [OPTION]... [-T] TARGET LINK_NAME (1st form)
|
| DESCRIPTION
| In the 1st form, create a link to TARGET with the name LINK_NAME.
`----
>From Wikipedia:
,----
| A symbolic link merely contains a text string that is interpreted and
| followed by the operating system as a path to another file or
| directory. It is a file on its own and can exist independently of its
| target. If a symbolic link is deleted, its target remains unaffected.
| If the target is moved, renamed or deleted, any symbolic link that
| used to point to it continues to exist but now points to a
| non-existing file.
`----
Best,
-Nikolaus
--
»It is not worth an intelligent man's time to be in the majority.
By definition, there are already enough people to do that.«
-J.H. Hardy
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Patrick Lioi |
last post by:
I've developed a simple content management system in PHP, and I'd like
to be able to put the code for it in a single place, and have several
sites on one server seamlessly share the code.
I want to put the app itself in /DOCROOT/MyCMS/.
I want to put a site that uses it in, say, /DOCROOT/site1,
/DOCROOT/site2, etc.
I want to place a symlink to /DOCROOT/MyCMS/ inside each site
|
by: marco |
last post by:
Hi all,
I know about os.symlink(src, dst), but is there
a way to overwrite an existing symlink e.g. "ln -sf"?
Short of checking and, if necessary, having to delete
the existing link by hand...
Thanks!
--
|
by: A. Murat Eren |
last post by:
Hi,
I have a problem about zipfile.
I'm trying to add files from local file system into a zip file via zipfile
module of python.. I have a function in my class which recursively adds files
or dirs into zip:
-------8<-------------------8<--------------------8<------------------8<-----
def add_file(self, fileName):
|
by: MD Raziuddin Haqqani |
last post by:
------=_NextPart_000_00FC_01C35142.4E7FDE00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Is there any way to create a symlink of table in two different =
databases which belongs to the same user.
It will be great help if I get the solution for above mention task. =20
|
by: lynn |
last post by:
Hello,
I tried to install on my mac osx 10.3.3 my mysql 4.0.13 databases on
an other partition than its application; I know it is possible because
I managed to do it previously with jaguar.
So, as I did before, I copied complete var of mysql into the other
partition. I eliminated the var in mysql directory and I made a "var"
symlink between the mysql directory and the var new location ; after I
verified the group, user name and...
| |
by: wheresjim |
last post by:
I have a project in which I only need read access to a Microsoft Access
database (.mdb file) via JDBC and unfortunately, the file is frequently
locked by another application when I need access to it. I figured that
I could bypass the lock file by creating a symlink (my os is Fedora
Core 3 Linux) and just putting the url to the Symlink into the
connection. Obviously I am having problems with this approach. Has
anyone else done
|
by: |
last post by:
I'm developing a website (PHP/Apache), and I need to be able to use a
'symlink' inside a URL where the symlink is a folder not a file.
I have been able to use symlinks that point directly to a file. Now I need
to be able to have the symlink point to a folder (which is a parent to other
content).
I have used PHP code to generate a SYMLINK to a folder, and I have
successfully tested the symlink through PUTTY. What I can't seem to do is...
|
by: ravimane27 |
last post by:
can someone tell me about symlink or softlink or symbolic link in windows?
i want to access network drives using softlink, can i do this? how?
thanks in advance.
|
by: saswat |
last post by:
check if file is a symlink
Here is a small piece of code:
import os
from stat import *
filePath = "/home/xyz/symLinkTest"
mode = os.stat(filePath)
print 'Find using os.path : ',os.path.islink(filePath)
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |