Read a directory structure?

Hallo every body,
How can I read the directory structure of a system(any tutorial or hint).
Thanks in advance

The File object has all the methods you need to do this manually. What problem are you trying to solve?

Similar Messages

  • Is there any way to specify a URL in the servlet-mapping that doesn't need to be in the directory structure?

              I migrated from WebLogic 5.1 to 7.0.2 Something I used to have set-up in 5.1 no
              longer
              works.
              I am using the weblogic.servlet.FileServlet and have the URL "/cxedocs/" mapped
              to this
              servlet. So whenever the URL http://localhost:7001/cxedocs/en_US/index.html
              is used it would use the docHome associated with the /cxedocs/ URL and then append
              the "en_US/index.html" on to it. So let's say d:\temp\en_US\index.html
              But now for WL 7.0.2 it appears that the URL also needs to be in the directory
              structure.
              So it now takes the docHome "d:\temp" adds the URL "/cxedocs/" and then appends
              the
              rest - so d:\temp\cxedocs\en_US\index.html.
              I can't require that the "cxedocs" directory be there. Is there anyway to map
              a certain URL
              without requiring it in the directory structure. I looked at virtual directory
              mapping too but
              it still seemed to require this.
              Any help would be appreciated!
              Thanks!
              -Lori
              

              I opened up a case with support on this. After some research they came back with
              that
              NO there is no way to do this. In 6.0 it was changed to follow the spec which
              restricts this.
              The URL must be part of the directory path.
              -Lori
              "Lori Ronning" <[email protected]> wrote:
              >
              >I migrated from WebLogic 5.1 to 7.0.2 Something I used to have set-up
              >in 5.1 no
              >longer
              >works.
              >
              >I am using the weblogic.servlet.FileServlet and have the URL "/cxedocs/"
              >mapped
              >to this
              >servlet. So whenever the URL http://localhost:7001/cxedocs/en_US/index.html
              >is used it would use the docHome associated with the /cxedocs/ URL and
              >then append
              >the "en_US/index.html" on to it. So let's say d:\temp\en_US\index.html
              >
              >But now for WL 7.0.2 it appears that the URL also needs to be in the
              >directory
              >structure.
              >So it now takes the docHome "d:\temp" adds the URL "/cxedocs/" and then
              >appends
              >the
              >rest - so d:\temp\cxedocs\en_US\index.html.
              >
              >I can't require that the "cxedocs" directory be there. Is there anyway
              >to map
              >a certain URL
              >without requiring it in the directory structure. I looked at virtual
              >directory
              >mapping too but
              >it still seemed to require this.
              >Any help would be appreciated!
              >Thanks!
              >-Lori
              

  • Creating a Standby Database with the Same Directory Structure

    Hello gurus,
    I am self-learning the feature Oracle Data Guard, so I am testing it on Oracle 10g R2.
    At Oracle documentation there is a section F.4.: Creating a Standby Database with the Same Directory Structure*, that explains how to create a standby database with RMAN but there is something that I don´t understand:
    In the standby server, I created a database with the SID equal to production database* with the objetive to have the same directory structure, but when I try to startup nomount the standby database with pfile appear this expected error:
    ORA-16187: LOG_ARCHIVE_CONFIG contains duplicate, conflicting or invalid attributes
    So my question is: Is possible have the Same Directory Structure on both: Production and StandBy server?
    Thanks in advanced.

    Uwe and mseberg: thanks for your quick answers
    I have a doubt: How can you have the same directory structure if you have differents SIDs?, for example if you follow the OFA suggestions you would must have:
    On Production server: */u01/app/oracle/oradata/PRIMARY/system.dbf*
    On StandBy server: */u01/app/oracle/oradata/STANDBY/system.dbf*
    Or you created the directory structure manually on StandBy server? For example replacing the string STANDBY* to PRIMARY* before create the database using dbca.
    Do you understand my doubt? Excuse me for my english.
    Thanks.

  • Lion Server not reading Active Directory Groups reliably

    I am trying to upgrade one of our XServes from Snow Leopard Server to Lion Server and am running into a strange issue with our Active Directory based users and Groups.
    The current Snow Leopard Server serving files from a XSan volume is running fine, though we find a very long Lag time for Windows users to connect. Once a few users have connected the lag seems to go away, but it is still not nearly as fast as Mac users connecting or Windows connecting to a PC server.
    So I have connected a second Xserve to the SAN and performed a clean install of Lion Server. Initially while it would find my Active Directory Groups it would not import any of the users, so obvioulsly no one could connect. In a last ditch effort I installed the beta of 10.7.4, which seemed to resolve the issue for a small group of test users. However as I expanded the test I found that some users would get a message that the were no resources available to them, or they didn't have the correct permissions. This is very strange as everyone is in the same group so should have the same permissions. As a test I took one of the user accounts and created a new share and gave him R/W permission to that share and suddenly all of the shares that he should have had permission to in the first place popped up.
    The only thing that I can think of is that we have such a large Active Directory structure that the authentication is timing out or reaching some user limit and stops looking. (we have over 50,000 users and thousands of groups spread through multiple OUs in the AD structure)
    The new Server.app in Lion looks nice, but it does not seem to have nearly the robustness of the previous Server Admin tools. For instance, I never needed or wanted to setup a "Golden Triangle" but with Lion it is required. Perviously I could search for AD users or groups and drag them from the search window to the share to assign permission, now even though I've imported the groups and users it needs to search the entire directory when assigning permissions - why can't it see the groups that are already there? Why can I run a dscl search and find a user or group instantly, but the Server.app hangs for 5 minutes and shows 0 results?
    Has anyone found a way to make Lion Server work in an enterprise environment?

    Yesterday morning I bound a 10.7.4 server to our AD, and in the afternoon I eventually saw all the AD users, groups, etc show in Workgroup Manager. Now, with dscl, I can see all the AD user and group records, and with Workgroup Manager, I can search the groups, users, and computers, but with the Server.app, when trying to create new group of the type "Imported group from another directory", the searches returned nothing. Directory Utility can show all the AD information also. Our AD has thousands of user record, and so it is reasonable that it may take some time for the Mac server to get all the info. But from the add users or groups interface, I just could not get any search results. What could be wrong then? 

  • Directory structure for  ABAP+JAVA Dialog Instance

    Hello,
    Can any one clarify how will be the directory structure in a case where we have ABAP+Java System?
    For Central Instance,DVEBMGS<instance no>
    Central Services,SCS<instance no+1>
    Ex:DVEBMGS20
    SCS21
    If I have another dialog instance,can I have only ABAP or only Java in that?What will be the directory structure?But I read that they will be in 1:1 ratio
    Will it be D22(Only ABAP) or J22(Java only).
    As a dialog instance,can ABAP exist with out JAVA.
    or can JAVA exist without ABAP
    Please explain the directory structure with an example.
    Thanks,
    Sudheer.

    Sudheer,
    http://www.redbooks.ibm.com/redpapers/pdfs/redp4200.pdf page No 24 should help you...

  • Directory Structure

    I just created a network installer for Q4 Release.  We have Developers, Full, and Debug licenses.  The DVDs were copied to the VLM computer's harddrive.  When I created the Debug configuration, the Network Installer reported the the DVDs did not have to be modified and would copy them directly.  When the network installed was done, it did not create the directory structure similiar to what the help file below shows.
    LabVIEW 8.0
    \_SourceFiles
    \Fourth Floor Engineering
    \Client
    vlmclient.exe
    other files
    setup.exe
    \Applications Group
    \Client
    vlmclient.exe
    other files
    setup.exe
    Figure 1. Network Installer Directory Structure
    I would have expected
    LabView 8.6
        \Source Files
        \Debug
            \Client
               vlmclient.exe
             setup.exe
    Only the \DISK1, \DISK2, \DISK3, \DISK4 were created.  The vlmclient.exe was not created.
    Paul 
    Solved!
    Go to Solution.

    When you were creating the VLI, did you get a popup message that said the source did not need modification? If you saw that popup, that means VLM was not pointed to a valid source file location, which will cause a direct copy of the files with no additions.
    If you select a valid source location, you should not see that message and the Product Name field should automatically populate. If you are using the Dev Suite or Platform DVDs, you will need to follow the steps in the KnowledgeBase article I refered to in my previous post.
    Here is an example of what copying the installer directory could look like if you just copy the LabVIEW 8.6 Platform DVD 1:
    LabVIEW 8.6 Platform DVD 1\_SourceFiles
                                                            \(the _SourceFiles directory will contain a copy of DVD 1)
                                                    \LV PDS (License Set name)
                                                            \setup.exe
                                                            \Client
                                                                     \vlmclient.exe (as well as some other vlm files)
    On the client machine, you would want to run "setup.exe" to begin the installation.

  • Directory Structure Errors

    In TechTools ( came with Applecare ) i got a failed on Directory Structure, second time since owning my couple month old machine, first time apple recomended reloading.
    i dont mishandle it, dont bump, dent, etc, the laptop.
    but all of a sudden sometimes my USB keyboard/mouse wont register as being plugged in all the time / techtools HDD errors.
    only recent think if done is instal Onyx to look over the logs, and little while after ( days ) the issues started hapening,, same with last time, but didnt think it was Onyx, now im starting to wonder, anybody else have any issues like this, and Would Onyx couse it ( doubt it, but since onyx goes deep into the system, no idea )

    It is an interesting coincidence that I came across this thread today because I had the exact same issue myself last night.
    I have plenty of space available on my HDD 73.1GB.
    I downloaded the latest Onyx last night and when it starts it checks the disk. I got an error on the startup volume so I ran Tech Tools as well.
    TechTools came up with that same failed Directory Structure error.
    I next tried to reboot the comptuer holding down Apple/S and entering fsck -fy
    That resulted in errors. Tried re-running it 3-4 tims to see if it would resolve anything but got the same error with every attempt.
    I then booted from DiskWarrior and ran that. It seemed to correct a number of issues and now TechTools, Onyx, Disk Utility etc. find no problems. But it was kind of an odd occurance and interesting to find I was not alone in getting that last night.
    The odd thing though is that I also checked my Mac Pro while I was wating on this one to finish and had directory errors on that one as well so had to run DiskWarrior on both.
    I was kind of concerned about that to say the least.

  • Directory structure after upgrade to iPhoto 6

    After upgrading to iPhoto 6, it appears that my photos were copied from the old, date-based structure into a new directory structure, but the old structure was left behind.
    What is the layout of the new structure, and can the remaining old structure be discarded at this point?
    Thanks for any insight you might be able to offer...

    The new structure organizes photos into Originals and Modified folders. There is a third folder called Data that contains thumbnails created for the photos (smaller pictures used for better performance). These three are essential for iPhoto 6 to work.
    Each folder contains a folder for each year (a year folder is created if you have even one photo from that year, e.g. a photo from 4/3/2004 will create a folder called "2004" and any other photos from that year will then be placed within it.
    Every import creates a serially numbered Roll folder within the year folder. So if you import photos including IMG_234.jpg from 4/3/2004, for example, the location of IMG_234.jpg will be:
    iPhoto Library/Originals/2004/Roll 1/IMG_234.jpg
    And Roll 1 will have other photos imported in the same session. If you modify the photo within iPhoto (enhance, retouch, etc), the modified copy will exist in:
    iPhoto Library/Modified/2004/Roll 1/IMG_234.jpg
    The Data folder will contain a thumbnail for the image in the same path as the Originals:
    iPhoto Library/Data/2004/Roll 1/IMG_234.jpg
    So inside the iPhoto Library folder, you will see some files and those three folders with their sub-structure folders. Other things within the top level of the iPhoto Library folder, are leftovers from the previous structure - such as a folder called "2004" or "2005" that ISN'T inside Originals, Data, or Modified folders.
    PhillyPhan's advice is sage. Don't mess with the insides of the iPhoto Library. However, I did verify on my own system after I upgraded, that year folders at the top level of the iPhoto Library are from previous versions of iPhoto. So you could move those, and those only, to a separate folder on your HD. I moved those off to a DVD-ROM and haven't seen problems since.
    Remember: Don't touch any files, and don't touch anything within Data, Originals, and Modified folders.

  • Directory Structure ?s for an Exploded Web Application

    We have an application that consists only of JSPs and Servlets, no
    EJBs. I am researching whether or not it's worthwhile to start using
    EJBs. We're also migrating from Weblogic 5 to 6.1. I've managed to
    migrate our application fine and have it up and running on WLS 6.1.
    I'm confused about the exploded directory structure, the
    application.xml file, where to put the EJBs and whether or not I have
    to jar them. Here's our current directory structure:
    DefaultWebApp/               JSPs here
    DefaultWebApp/WEB-INF          web.xml and weblogic.xml here
    DefaultWebApp/WEB-INF/classes     Servlets and other classes here
    DefaultWebApp/WEB-INF/lib     do my un-jar-ed EJBs go here?
    I've been reading a lot of BEA's documentation, particularly
    ‘Deploying an Exploded J2EE Application' and a ‘Web Application PDF',
    and looking for relevant threads on the weblogic.developer.interest
    groups. It looks like the application.xml should go in a new
    DefaultWebApp/META-INF directory. But where do the EJBs go?
    I also see some directory structures with another /web directory
    that's confusing me.
    Oh, I've also managed to compile and jar up a trial Stateless Session
    EJB. Then I think I ‘auto-deployed' it into the /applications
    directory, and Weblogic seems to recognize it. But when I tried to
    reference it in a JSP, I got an error message ‘class x is public,
    should be declared in a file named x.java'. I'm assuming this is
    related to the application.xml, where I need to define the ejb
    directory.
    Thanks.

    To deploy your web app together with your EJBs, you need to create
    an "EAR" structure. Both your webapp and your EJB jars will be within
    this new structure, at the same level. You may jar up your EJBs, or you
    may explode their structure, it's up to you.
    The resulting structure should look something like below:
    EnterpriseApp/ <-- new top level
    EnterpriseApp/META-INF/
    EnterpriseApp/META-INF/application.xml
    EnterpriseApp/lib/ <-- shared libraries (if any)
    EnterpriseApp/EJB/ <-- ejbs go here
    EnterpriseApp/EJB/META-INF/ejb-jar.xml
    EnterpriseApp/EJB/META-INF/weblogic-ejb-jar.xml
    EnterpriseApp/EJB/com/your/ejb/classes/here
    EnterpriseApp/WebApp/ <-- move your current app here
    EnterpriseApp/WebApp/index.jsp <-- JSPs goes here
    EnterpriseApp/WebApp/other.jsp
    EnterpriseApp/WebApp/WEB-INF/web.xml
    EnterpriseApp/WebApp/WEB-INF/weblogic.xml
    EnterpriseApp/WebApp/WEB-INF/lib <-- ui libraries go here
    EnterpriseApp/WebApp/WEB-INF/classes <-- servlets go here
    The above structure is identical to the structure to an EAR file, only "exploded"
    as actual files and directories instead of being "jarred" into a single EAR file.
    Your application.xml in this case would specify something like:
    <application>
    <display-name>EnterpriseApp</display-name>
    <description>My Enterprise Application</display-name>
    <module>
    <ejb>EJB</ejb>
    </module>
    <module>
    <web>
    <web-uri>WebApp</web-uri>
    <context-root>/yourAppRoot</context-root>
    </web>
    </module>
    </application>
    And in config.xml you would have an entry similar to:
    <Application Deployed="true" Name="EnterpriseApp"
    Path=".\config\mydomain\applications\EnterpriseApp">
    <WebAppComponent Name="ui" Targets="myserver" URI="WebApp"/>
    <EJBComponent Name="ejb" Targets="myserver" URI="EJB"/>
    </Application>
    regards,
    -Ade

  • Directory Structure in 9.0.2

    Is it possible to have 'sub' page groups ie. page groups within page groups?
    If not how could one implement a deep content directory structure such as is possible with content areas and folders in portal 3.0.9?

    It is not possible to have pagegroups within pagegroups. However, to achieve what you are looking for... you could create pages/sub-pages under a pagegroup upto any level of subpages (page within a page...).

  • Directory structure mirroring

    I have my mp3:s neatly organized in a directory structure on
    my disk. There's where I'd like to add and remove albums,
    and would like the itunes music library to automatically
    update when I make changes.
    I.e. if I add albums on my disk, I'd like them to appear in itunes (and on the ipod when syncing).
    And if I remove albums from my disk I'd like them to
    automatically disappear form itunes and the ipod.
    Can I make Itunes work like this? I dont like to make all
    changes twice, i.e. deleting both from the disk and then in
    itunes. This gets especially irritating when moving many
    albums.
    Ideas? Cheers / Tom
    Dell XPS PC   Windows XP Pro  

    You need to create a form and assign it to the reconciliation process. In the form, you need waveset.organization set to where you want the user objects placed. By default, waveset.organization is set to just "Top". You can get the DN, parse it into a list and write the xml code to use the list to place each in a different virtual organization.
    Start off simple, say create a container called Top:newusers. Take a copy of Empty Form and save it as orgEmpty Form or something. Define a field waveset.organization and just set its value to "Top:newusers". Then in the resource, set the reconciliation form to your new form.
    Try this, once you see new ids show up in Top:newusers, you then can enhance the logic to be more sophisticated in placing objects. That is, parse the DN into a list and walk the list for a IDM waveset.organization value.
    BTW, a good question to ask prospective IDM so called experts. Of 8 or so, I only met one that new how to do this efficiently.

  • Directory structure question...

    I've been w/ three different companies doing Java development now, and each time I've come in once the project is already in progress and the directory structure is set up. What I see is a similarity:
    com.<company name>.<project>.<sub-units>
    examples:com.delta.kiosk.server
    com.delphi.shipping.guiIs this a common way of laying out directories and if so, what is the benefit (other than standardization)?

    I always figures that it was primarily a namespace issue.
    org.apache.ecs.Attributes
    org.xml.sax.Attributes
    are examples of class names that would have resulted in a collision without the prefixes. A full class name has the package name before it so
    String
    java.lang.String
    are the same thing, String is just shorthand for the latter. But if there are two of the same class then the prefix will help the compiler know where the class is supposed to come from. com.<company name>.<project>.<class> is a good way to ensure that you will not encounter a collision.

  • Directory structure and files in Oracle Application server 10g and 11g

    Hi all,
    I am doing a lab migration from 10g to 11g based on the use of JAXB. There were some directory structures used in 10g to store the JAXB jar files and some other custom jar files. I want to know the equivalent folder structures in SOA 11g server. The 10g server directories are mentioned below:-
    1.<OracleAS_Home>\webservices\lib.
    2. server.xml located at <OracleAS_Home>\j2ee\home\config in 10g. Where can I find the equivalent file to "server.xml" in 11g server?
    3. <OracleAS_Home>\bpel\system\classes\com\oracle\bpel\xml\util.
    4. <OracleAS_Home> \bpel\system\classes.

    Here are the equivalents as per best of my knowledge:
    1. <WebLogic Home>\server\lib
    For example, D:\Middleware\wls1036\wlserver_10.3\server\lib
    2. config,xml located at <Domain_Home>\config\
    For example, D:\Middleware\wls1036\user_projects\domains\ArunBaseDomain1036\config\config.xml
    3. It should be the same as 10g (instead of OracleAS_Home, it will be ORACLE_Home) if you install the BPEL product. Since, I have not installed BPEL/SOA, I am not very sure.
    4. It should be the same as 10g (instead of OracleAS_Home, it will be ORACLE_Home) if you installed the BPEL product.
    Also, I would recommend that you consider using ORACLE Smart Upgrade (JDeveloper component) to help you with the upgrade process. It exactly points out these mappings of file/directory structures AND the necessary configuration changes as well.
    If you are requirement, is only about making the library jars available to your application, then consider reading the below discussion.
    Re: XIncludeAwareParserConfiguration cannot be cast to XMLParserConfiguration
    Arun

  • An intelligent way to import already existing directory structure to Aperture

    Hello,
    is there an intelligent way to import already existing big directory structure of photographs (over 2TB) archive into Aperture?
    I have my catalogue on a disk created in a way:
    date - short shot description (i.e. “2011-02-14 Name Surname (portrait)”)
              Originals
              Converted
              PSD
              Final
    I would like, when importing “date - short description”, it to become an Aperture Project with the same name and subfolders Originals, Converted, PSD and Final to become Aperture Albums or Folders in that Project.
    The only way I found is to create a Project and Albums in that project manually and then import all the pictures from the corresponding folders, one-by-one,  to Aperture’s Albums. I use references only to preserve the current archive structure on a disk as well.
    thank you for your time.

    You can try and experiment with the various options in File->Import Folders as Projects, specifically the option Import Folders as  to see if you get what you are looking for but I doubt  you will get exactly what you are looking for.
    One way to achieve your goal would be to import the projects and then once that is done create the other entities (either folders or Albums) once and then paste them into each project.
    The only way to truly automate this would be to write an Applescript and unless this is an ongoing requirement by the time you developed the script you could have just created the structure and pasted into the projects.

  • Data guard: OMF and directory structure

    hi everybody,
    i guess this problem is not too complicated, but maybe i´m missing something.
    assumption:
    - 10.2.0.4
    - data guard with physical standby (primary: node_a, standby: node_b)
    - primary db_unique_name=primary, standby db_unique_name=standby
    - using OMF, primary db_create_file_dest=<myDir>/oradata
    - standby_file_management is set to AUTO
    - want to use same directory structure for data files on both nodes (<myDir>/oradata/PRIMARY/)
    data guard is working as expected so far, data files on both nodes are created in <myDir>/oradata/PRIMARY/datafile/
    next assumption:
    - failover is initiated
    - physical standby is recreated on former primary node (node_a)
    from now on, data files are created in <myDir>/oradata/STANDBY/datafile/, old data files remain in <myDir>/oradata/PRIMARY/datafile/.
    is there a way to avoid a second directory (and still use the benefits of OMF)? at least at the current standby node it´s possible to avoid this by setting db_file_name_convert, but what about the new primary?
    thanks for your input,
    peter
    Edited by: priffert on Sep 14, 2009 3:07 AM

    I have a similar setup with the exception that I'm using ASM for datafiles. The issue I'm having with OMF is that if I create a datafile within a disk group that is not in the location specified by db_create_file_dest then on the standby it's created in the db_create_file_dest. Apparently this will not give me the ability to maintain the exact configuration on both primary and standby without requiring modification after role changes.

Maybe you are looking for

  • How to handle events in Swng

    Hi! I would like to know which one of the following is the best way to handle events in Swing application. Method 1 Write annonymus inner classes in the same class Method 2 ======= Write a seperate class which extends the adapter class of the event h

  • Error while trying to remove a page group

    Hi, When trying to remove one of my page-group, I get the following error message: An unexpected error has occurred (WWS-32100) ORA-1: User-Defined Exception (WWC-36000) Error while deleting page. (WWC-44130) An unexpected error occurred: ORA-20100:

  • 2nd generation Time Capsule bug?

    Hi I'm having trouble with my new Time Capsule (purchased July 2011).  We have two iMacs and two printers, and one Airport Extreme (used as an extender) on the Time Capsule network.  We also use Time Capsule with Time Machine for back up of both iMac

  • Can Someone help me download a free tiral of Adobe Premiere Elements?

    My Adobe Premiere Elements did not download.  I did everything it asked me to do and it downloaded something onto my desktop but I can't find any timeline for me to edit my videos.  Can someone help me? David Kaplan

  • Choppy/blurry text in SQL Management Studio Scripts

    Hi All I hope someone can help. For some reason my SQL Management Studio scripting window looks blurry; there seems to be a lot of missing pixels. I've restarted my machine, tried reset the font options but still can't see why this has started sudden