Database storing directory-like structure question

I have a database with a column called File which store the fullpath and name of a file.
e.g. "\root\myfolder1\myfile.txt"
My problem is I would like to retrieve all content inside a particular folder, e.g. all content inside \root. What should I do?
Thank you very much~

thx...
but the problem is I just want to have the direct children inside the folder.
e.g., I got 3 entries in the database
"\root\layer1\layer2\a.txt"
"\root\layer1\"
"\root\layer1\b.txt"
I don't want to have those "\root\layer1\b.txt" or "\root\layer1\layer2\a.txt" returned.
Thank you very much again.

Similar Messages

  • Develop presets ordered in a directory like structure

    If you are having a ton of develop presets you have to do extensive scrolling in order to find the proper presets.
    Moving to LR4 I wish to have an directory like structure for the presets.
    This makes even more sense because the new 2012 versions treats presets (not all but some) different than the "old" 2010 Version.
    I can't imaging there will be something like a preset upgrade in the official version.
    Having the mentioned structure  it would be possible creating new presets under this structure and it would be easyly to differntiate the version.
    e.g
    2012-version
         --- wedding
         --------high contrast
         --------low contrast
         --------sepia
         -------------foobar1
       -------------foobar2
         --- nature
    2010-version
         --- wedding
         --------high contrast
         --------low contrast
         --------sepia
         -------------foobar1
       -------------foobar2
         --- nature

    As it may not make the final release, and we wouldn't want the request to get lost in beta land, might I suggest adding it as a suggestion on the Feature Request forum http://feedback.photoshop.com/photoshop_family where it can easily be tracked?  In fact, if you search over there, I think you'll find a similar request to add your vote to.

  • Access rights in case of a tree-like structure, with inheritance

    Hello,
    the project I've just started to work on should include an easy way (from the user's point of view) to grant/revoke access rights on a tree-like structure with inheritance.
    Basically we are working for several international companies who want to use our application to watch/manage some of their web projects - each project belongs to one company and consisting of several 'campaigns' in several countries (there can be several campaigns per country, but each campaign belongs to exactly one country).
    From our point of view this is a tree-like structure, with a 'root' node at the top level, 'companies' at the first level, 'countries' at the second level, 'campaigns' at the third level, and modules of our application (for example a module to display overall stats of the campaing, and so on) at the fourth level. There could be (and probably will be) some more levels, but that's not important at this point - it will always be a tree-like structure.
    The customer's reqirements are natural - the administrators should be able to grant/revoke access to 'subtrees' of this structure. For example the top managers should be able to see all the data related to their company, the local managers should be able to see all the data related to their company in the country they work in, etc. On the other hand the relular employees should not see some of the modules (with details about clients of the company).
    I wonder whether this can be solved using JAAS in an elegant and flexible manner - from the documents / whitepapers / tutorials I've seen till now it seems to me it seems to me not too suitable.
    All the data will be stored in relational database (Oracle, and in some cases PostgreSQL), and it would be nice to have the access rights stored in the same way (but it's not required). We have some ideas how to solve that using a single table containing paths in the tree, but at this point it's only an idea (not a single line of code written).
    We are sure somebody has already to solve such a problem - maybe using JAAS, maybe some other technology - and we don't want to reinvent a wheel. Do you have an idea how to solve this (using JAAS or something else)?

    Well, I forgot to explain what the 'inheritance' means ...
    We do not want to set the access right on each node of the tree - we prefer (as well as the users) to set/store only as much information as needed. We'd like the nodes to inherit the access rights from their parent nodes. For example we'd like granting access to particular project to mean granting access to all campaigns in all countries (related to the project), without the need to set and store these rights for each of the campaigns/countries.

  • Trre like structure in JComboBox. (VERY VERY URGENT , PLZ. HELP)

    hi,
    Question is I want to get a tree like structure in my comboBox. I have built a custom component just like FileDialog. In my comboBox I have a directory showing that inturn contains directories inside. When I pop up my component my parent directory is shown in the comboBox and the child directories are shown in the panel underneath it. Just like FileDialog. When I select any child directory it's name is added under the parent directory and indented to the right a little in my comboBox and in my panel the child's sub-directories are shown. If I again click a parent directory in my comboBox the chiild directory is removed and in the panel again my parent directories child directories are shown it's just like FileDialog. How can i achieve this functionality. Any help or piece of code is appreciated
    Thank you

    I am kind of guessing here, but this sounds like a
    similar problem to that you'd have implementing a
    treetable.
    Check out the sun treetable tutorial, especially the
    cell renderer parts wich is really how the tree is
    displayed.
    I guess you need to replicate that for your list (part
    of the combo box). Let me know how you get on, I'll
    try and work with you on this as I'd like to learn how
    to do that myself.For a real tree table, check out the Swing Connection articles (it's about more that this renderering problem).
    http://java.sun.com/products/jfc/tsc/articles/index.html
    Anyway, for this problem, there are two solutions. Somehow draw a JTree when the drop down is clicked instead of the individual rows (I have no clue how to do this) or develop a new renderer.
    The renderer would implement ListCellRenderer. The default renderer is based on a JLabel, but I know of no method to indent the JLabel by itself, so option 2 is a new renderer based on a JPanel with a flow layout with left alignment. The indentation can be achieved by adjusting the horizontal gap.of the layout.
    You might also need to call invalidate(), followed by validate(), on the panel after adjusting the gap. This is because modifying the constraints on the layout does not cause it automatically to re-layout the components on the container.

  • Does Oracle have Extended Stored Procedure like SQL Server and Sybase?

    Hi, i am new to Oracle. I want to know if...
    Does Oracle have Extended Stored Procedure like SQL Server and Sybase?
    If it does not have, then how can i call outside program written in C or JAVA from the Database stored procedure or trigger?

    refer to this link on external procedures
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/manproc.htm#11064

  • How to trace the database table for a structure

    hi
    am trying to find the database table for a structure unfortunately am failing to use the sql tracer any one know howelse i can do that the structure name is 'busbankcheck' and 'bus000flds'.
    thanx in advance

    Hi florence,
      1)      U can go to tcode sldb and give ur structure name or if u can find which logical database it is from u can get the tables of the structure....
    Suppose it is of HR it may be like pnp logical database and then to sldb and give pnp and u can get all the table of that....
    2)If u know which fields u want from the stucture....then go to table DD03L and give ur fields name and it iwll bring where all tables this field is avaialble and u can find them......
    3) the st05 sql trace can help u.....
    I hope any one of the three will definetely help uuu
    Regards
    vamsi
    Edited by: vamsi talluri on Jan 22, 2009 1:24 PM

  • Can you login with a pc into open directory like you login with a mac into open directory?

    Can you login with a pc into open directory like you login with a mac into open directory.

    AustinRockes16,
    Have you considered posting your question on a Windows forum, asking on a general iMac forum where most users use OS X probably may not yield the results you are looking for.

  • Inserting or embed and image into cfmail output from a database-stored path to an actual image.

    I am trying to insert or embed and image into cfmail from a database-stored path to an actual image. The actual JPEG image is stored in a folder called "images_personnel". The path to the image under the column titled photopath is stored in my database table as "/file/images_personnel/28.jpg". Displaying the image on the screen renders without a problem, embedding the same image as part of a cfloop query does not insert/embed the image into an email. All of the other output of the same cfloop displays and emails just fine. However none of the photos of each personelle show up. What an I doing wrong?
    My code is below:
    <cfquery name="Staffreport" datasource="master">
    Select staffreport.*, name.personnelid, name.email, name.last, name.noiid, stafflt, CONCAT(name.fname,' ',name.middle,' (',name.last,')') AS teammember, CONCAT(name.fname,' ',name.middle) AS teammember2, concat(name.photopath,'',name.photo)as hisphoto, stafflt.*, trim(concat(ltfname,' ',ltmiddle)) as LT from Staffreport, name, stafflt
    where 0=0
    and stalt = '#Session.user_id#'
    and ltid = '#session.user_id#'
    and staweekbegin = <cfqueryparam value="#form.staweekbegin#" cfsqltype="cf_sql_date" />
    AND staweekend = <cfqueryparam value="#form.staweekend#" cfsqltype="cf_sql_date" />
    AND stapersonnelid = personnelID
    <!---AND ltid = stalt--->
    AND CITY = 'richmond'
    AND STATUS <> 'd'
    AND STATUS <> 'T'
    AND type = 'personnel'
    Group by personnelid
    Order by teammember
    </cfquery>
    <cfmail>...
    <cfloop query="staffreport"><br />
    <table width="90%" border="0" cellspacing="2" cellpadding="4" align="left">
      <tr>
        <td colspan="2" align="center" valign="top" nowrap="nowrap" bgcolor="cccccc"><strong><font color="black"><cfif #staffreport.last# eq ".">#Ucase(Staffreport.teammember2)# <cfelse>#Ucase(Staffreport.teammember)#</cfif> - ID: <cfoutput>#Staffreport.noiid#</cfoutput></font></strong></td>
      </tr>
    <tr>
        <td align="left" valign="top" nowrap="nowrap" bgcolor="#000000">Name:</td>
        <td>#Staffreport.teammember#</td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Photo:</td>
        <td bgcolor="EBEBEB">
    <img src="#staffreport.hisphoto#" alt="Photo" width="98" height="98">
    </td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Email:</td>
        <td bgcolor="EBEBEB">#staffreport.email#</td>
      </tr>
    </table>
    </cfloop>
    </cfmail>

    You'll need to provide a full URL link to the image ("http://mywebserver/file/images_personnel/28.jpg"), not just a relative path.  Remember, the email client that is used to view the email content knows nothing of the internals of your web server - it can only follow a complete URL to get images and other resources.
    -Carl V.

  • I would like a Question About Flexconnect HA N+1 After WLC 1 Down and AP go to Joint WLC 2

    Hi everyone
    I would like  a Question About Flexconnect HA N+1 After WLC 1 Down and AP go to Joint WLC 2
    -Cisco WLC 8500   =  2 unit  version 7.6.130.10
    -Mode Flexconnect     HA  N+1
    -AP Joint WLC 1 and 2  mode HA N+1  
    I would like After WLC 1 Down is AP Go to joint WLC 2  Client associate in AP can use DATA Traffic between AP Failover ??
    I think Mode Flexconnect client can use data traffic if WLC 1 , 2 Down becasuse Mode flex data traffic not go to WLC ??
    I think true ??
    thank you

    Hello
    You should try a flexconnect deployment
    combined with locally switched SSIDs, which
    should comply with your requirements.
    fp

  • Grid like structures in jsp

    does any body fimilar or made any grid like structure in jsp

    Possibly the most useful client-side grid I have seen is the EBA Grid. It's entirely DHTML/JavaScript and has server-side code for JSP, ASP, and PHP. It does asynchronous paging and some other interesting stuff: http://www.aspgrids.com.

  • Tree Like structures

    Dear All,
    I am working on some tree like structures querys.
    I am strucked up with one tricky concept.
    My Data is like as given below
    EMPNO MGR
    1
    2 1
    3 1
    4 2
    5 4
    Now my requirement states that I should display the date as given below
    1
    1 2
    1 2 4
    1 2 4 5
    Can anyone help me in designing a query.
    Appreciate your help on this.
    Thanks,
    Madhu K.

    If more levels are there then it should populate under different columns like col5 ..... That's fine, that's how it will work.
    There are only 4 levels above because that's just how the sample data is.
    1 2 3 4You'd think people could give suggestions that get you over the hard bit and then you do some work for anything that's not exactly right.
    SQL> ed
    Wrote file afiedt.buf
      1  WITH DATA AS(
      2   SELECT 1 a,0 b FROM dual UNION
      3   SELECT 2,1 FROM dual UNION
      4   SELECT 3,1 FROM dual UNION
      5   SELECT 4,2 FROM dual UNION
      6   SELECT 5,4 FROM dual UNION
      7   SELECT 6,5 FROM dual
      8  )
      9  SELECT SUBSTR(SYS_CONNECT_BY_PATH (a,' '),2) scbp
    10  FROM DATA
    11  CONNECT BY PRIOR a=b
    12  START WITH a=1
    13* ORDER BY 1
    SQL> /
    SCBP
    1
    1 2
    1 2 4
    1 2 4 5
    1 2 4 5 6
    1 3
    6 rows selected.
    SQL>

  • Calling database stored  function from Entity Object

    Hi,
    I want to call a database stored function from create() method of Entity Object.
    Database function returns some value.
    Can anybody suggest me some way to do it.

    You can try the following:
    make a String whit your function call, I dont know if this is the correct SQL syntax for a function, it should be for a stored procedure.
    String call = "begin; callyourfunction; end;"
    PreparedStatement ps = getDBTransaction().createPreparedStatement(call,0);
    ps.execute();
    ResultSet rs = ps.getResultSet();
    You can now read the data from the function from the rowset.
    Be sure to cleanup the PreparedStatement when your done whit it to avoid open database connections.
    ps.close();ps=null;

  • Creating a virtual directory like OA_JAVA

    Hi ,
    I want to create a new virtual directory like OA_JAVA which also points to same like OA_JAVA. wht I have to do.wht adovars need to create it.
    Thanks

    You can do by editing apps.conf anf httpd.conf files.
    How to Diagnose: 11i Basic Apache/mod_jserv Troubleshooting with Hello.class [ID 230688.1]
    Release 12 File System Changes : R12 Vs 11i [ID 433111.1]
    Customizing an AutoConfig Environment [ID 270519.1]
    Thanks,
    Hussein

  • Mount a directory like WEBDEV in windows in Linux/Unix

    I want to access the Files from a linux/Unix machine through a simple thick client . Is it possible to
    mount a directory like WEBDEV in windows in Linux/Unix.

    Here is a java based client that I've used. Just use the http://<hostname@doamin>/files/content for access to your files.
    http://www.ics.uci.edu/~webdav/

  • Tree like structure ??????????? pls help

    Hello
    I want to get the tree like structure
    My requirement is that when I write any jsp and put it in webapps's any
    folder I should get tree like structure of the folders in which I am putting my jsp.
    Foe example I have structure like
    webapps
    --rakesh_folder1
    --rakesh_folder2
    --rakesh_folder3
    ---rakesh_subfolder1
    ---rakesh_subfolder2
    ----(Here goes my jsp which would make to get sructure)
    ----my_other_file_1
    ----my_other_file_2
    When I type http://localhost:8080/rakesh_folder3/rakesh_subfolder2/jspname
    I want output as
    --rakesh_folder3
    ---rakesh_subfolder2
    ----my_other_file_1 (size of file) (time stamp)
    ----my_other_file_2 (size of file) (time stamp)
    How should I proceed ????????????????????
    Tx in advance
    Rakesh

    rakesh,
    see if you have tree structure like this
    C:\
    Vivek
    Rakesh
    then C:\ is the root from where you are starting.
    so just
    <html>
    <body>
    C:\
    &ampnbsp;&ampnbsp;&ampnbsp;Vivek
    &ampnbsp;&ampnbsp;&ampnbsp;Rakesh
    </body>
    </html>

Maybe you are looking for

  • Getting links and its names from a html file

    Hi everyone My problem about the a getting links with name from a html file. For example İn a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com İ want both of them, so the links and name. I can succeeded the get link

  • Revit 2013 on my 2009 mac book pro

    I am interested in running AutoCAD Revit MEP on my macbook. My current specifications are: Mac OS 10.6.8, Processor 2.4Ghz intel core 2 Duo, Memory 4GB 1067 MHz DDR3, Griphics NVIDIA GeForce9400M I'm also running Windows XP 32 bit Professional throug

  • Anchored objects (haven't used them often enough!)

    I haven't really used anchored objects a lot, but I want to start! I'm trying to make an achored frame to hold a photo since I will be adding lots of photos into columns and need to keep them aligned with the person's name. I've set the frame with a

  • IMac 5k slow with Indesign CC2014 and PDF's?

    I have a new iMac 5k, i7 4ghz processor, 24 gigs of ram, AMD Radeon M29FX with 4 gigs of DDR5 ram gpu and 1 TB of flash storage. I upgraded to this from a mid 2012 Retina MacBook pro, i7 2.6 ghz processor, 16 gigs of ram and a NVIDEO GeForce 650M 102

  • Kde 3.5.9

    Missing the update from the "kdebindings" and the new Archlinux Logo's for the background and kde-splash-screen.