Sponsored Content
Full Discussion: Link to a directory
Top Forums UNIX for Dummies Questions & Answers Link to a directory Post 302281283 by ganga.dharan on Wednesday 28th of January 2009 01:20:52 PM
Old 01-28-2009
Link to a directory

Hi Experts,

Is there any way to link the contents (subdirectories/files) of a existing directory A to another existent directory B..

The relative path of /root/Directory A/
Directory A
|__ Subdirectory A1
|__File A
|__File B
|__ Subdirectory A2
|__File A
|__File B

The relative path of /root/Directory B/
Directory B
|__ Subdirectory A1
|__File A
|__File B
|__ Subdirectory A2
|__File A
|__File B

Directory B is controlled by a Version Control system, so obviously, we did not want this to be a symbolic link from Directory A. We will be making the modifications on Directory A, which we are expecting to reflect in Directory B.

Lets say, if i modify some contents in File A of the subdirectory A1 of the root directory A, then it should get reflected in the same path of the directory B too.

Your valuable inputs and help appreciated.
 

10 More Discussions You Might Find Interesting

1. AIX

To link a filesystem to a directory

Hi, I was wondering if someone can help me out with one of my simple problems. I have a filesystem, /oracle/dir1/sapdataA. The client has the filesystem /oracle/dir1/sapdata1. Now I want to link these 2 directories so that if I cd to /oracle/dir1 and do an ls -l I get the following output: cd... (3 Replies)
Discussion started by: brookingsd
3 Replies

2. Shell Programming and Scripting

how link directory

I want to link directory to another directory pls confirm whether i am doing correct or not I want to link test directory to another hist directory /users/test/ ln -s /users/hist pl confirm (1 Reply)
Discussion started by: getdpg
1 Replies

3. Solaris

soft link for directory in root FS

Hi, In root folder there is one directory "/usr/sap/P38/TRX00/index" as the data is going to increase so to aviod root fs become 100% full ,we have to create one soft link that would point to another point mount created with on same disk ultimatly that New Fs(/test) will store data instead of... (2 Replies)
Discussion started by: solaris123
2 Replies

4. Web Development

html link to images in /tmp directory

Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link:... (2 Replies)
Discussion started by: Solerous
2 Replies

5. AIX

link directory across server

Hi All, I have directory "A" on server "1". I also have directory "B" on Server "2" I need to link these 2 directories "A" and "B" which are across servers. Is it possible? If so, can somebody help me on this? Thanks in advance. Mugundan (2 Replies)
Discussion started by: mjdarm
2 Replies

6. UNIX for Advanced & Expert Users

Hard link a directory

Is it possible to Hard link a directory? Some people on google say it is possible and some say it is not possible. I haven't seen a working solution though. (3 Replies)
Discussion started by: cokedude
3 Replies

7. UNIX for Dummies Questions & Answers

Symbolic link for an existing directory

Hi , i am trying to make a symbolic link for an existing directory, but i am facng some problems regarding the usage of command. If there is no directory i can make a symbolic link, but for an existing directory i am not able to. can anyone post me the exact usage if we already have the... (1 Reply)
Discussion started by: sahasra
1 Replies

8. Post Here to Contact Site Administrators and Moderators

Broken Links in the Site Link Directory

(split from another thread) Hi. Can you please post a copy of the exact link you used? I have no trouble accessing either the readme, or the link to "Featured Books and Articles by Active Forum Members - Links" Thanks. (2 Replies)
Discussion started by: Scott
2 Replies

9. Shell Programming and Scripting

HELP on checking for directory or symbolic link

Hi, Can anyone please advise why the following is not working as I expected it to be? Test script as below: #!/bin/ksh for checkdir in dir* do echo "Checking ${checkdir}" if ; then echo "... ${checkdir} is a directory" elif Output from sample run as below: $:... (8 Replies)
Discussion started by: newbie_01
8 Replies

10. Solaris

Create a Link for a directory

Hi, I need to create a link as stagein01 for the /p11/prod/stagein01/. Please let me know the procedure for the same. Regards, VN (5 Replies)
Discussion started by: narayanv
5 Replies
TIFFSetDirectory(3T)													      TIFFSetDirectory(3T)

NAME
TIFFSetDirectory, TIFFSetSubDirectory - set the current directory for an open TIFF file SYNOPSIS
#include <tiffio.h> int TIFFSetDirectory(TIFF* tif, tdir_t dirnum) int TIFFSetSubDirectory(TIFF* tif, uint32 diroff) DESCRIPTION
TIFFSetDirectory changes the current directory and reads its contents with TIFFReadDirectory. The parameter dirnum specifies the sub- file/directory as an integer number, with the first directory numbered zero. TIFFSetSubDirectory acts like TIFFSetDirectory, except the directory is specified as a file offset instead of an index; this is required for accessing subdirectories linked through a SubIFD tag. RETURN VALUES
On successful return 1 is returned. Otherwise, 0 is returned if dirnum or diroff specifies a non-existent directory, or if an error was encountered while reading the directory's contents. DIAGNOSTICS
All error messages are directed to the TIFFError(3T) routine. %s: Error fetching directory count. An error was encountered while reading the ``directory count'' field. %s: Error fetching directory link. An error was encountered while reading the ``link value'' that points to the next directory in a file. SEE ALSO
libtiff(3T), TIFFCurrentDirectory(3T), TIFFOpen(3T), TIFFReadDirectory(3T), TIFFWriteDirectory(3T) October 15, 1995 TIFFSetDirectory(3T)
All times are GMT -4. The time now is 05:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy