Which method specify size of the director?

I want to specify size of the director. which method need to use?

length() !
As far as I know, you will need to recurse the directory yourself and add up the sizes! Do this with great care! You'll need to be sure that each File is a file and not a directory; you'll have to decide how to handle nested directories -- recurse on those as well or do something else -- and you'll also have to be aware of symbolic liks which may return the length of the liked file and throw off your math!
Sounds tedious. I looked through the API and I don't see anything there that does this for you.

Similar Messages

  • By which method,i can get  the no of rows in the record set?

    Does anyone help me that by which method,i can get the no of rows in the record set?
    now i use next() to check whether the next record is available or not?

    shashi_rajak wrote:
    under Practice Exercise #1 heading :
    there is a statement.
    "Now, the COUNT function does not need to retrieve all of the fields from the table (ie: employee_number, employee_name, and salary), but rather whenever the condition is met, it will retrieve the numeric value of 1. Thus, increasing the performance of the SQL statement."And have you ever tried it? Or do you simply blindly believe everything you read? And what sort of "authority" is "tech on the net"?
    P.S. A quick test on Oracle (and you must do each query at least twice throwing away the first result, as Oracle always caches things which will have an effect, and averaging the remaining attempts).
    count(*) -- 1 min 17 secs for 35,311,978 rows
    count(1) -- 1 min 19 secs for 35,311,978 rows
    Edit: And the table has 46 columns.

  • Which method is better to the performance?

    Using SQLs at front side or using stored procedures at back side, which method is better to the performance?

    jetq wrote:
    In my view, it maybe have other difference, for example,
    Using stored procedure, you don't need to recompile the script every time to be executed,
    and use the existing execute plan.what if first time procedure is called after DB start?
    PL/SQL does not have EXPLAIN PLAN; only SQL does.
    But using SQL statement from application layer may be different.different than what exactly.
    SQL is SQL & can only be executed by SQL Engine inside the DB.
    SQL statement does not know or care about how it got to the DB.
    DB does not know or care from where SQL originated.

  • Which method is right  for creating directory

    Hi all
    whenever we create directory for oracle 11g during installtion
    we have two method from documents
    which method is right
    Create the directories in which the Oracle software will be installed:
    mkdir -p /u01/app/oracle/product/11.1.0/db_1
    chown -R oracle:oinstall /u01
    chmod -R 775 /u01
    or
    Create the directories in which the Oracle software will be installed:
    mkdir -p /u01/app/oracle
    chown -R oracle:oinstall /u01
    chmod -R 775 /u01

    ORACLE_BASE is a base directory which is owned by oracle user. The software itself is installed in ORACLE_HOME. When you create ORACLE_HOME it creates you also ORACLE_BASE. That's the way to go. If you don't have ORACLE_HOME created Oracle Universal Installer might complain or fail.

  • How to resize the Director stage

    I need my programme to adjust the size of the Director stage
    to one of 3 dimensions at startup 1024x768, 768x432 or 1280x720
    acording to a variable it reads in from a ini file. How can this
    best be achieved within a single Director movie (I don't want to
    just have a stub movie that loads a relevantly pre-sized movie
    file)?
    Many thanks
    Kevin

    Ok, (the stage).rect and (the stage).drawRect work fine but
    if what you want to do is a monitor resolution change, i recomend
    to use the Enhancer Xtra is excellent about change monitors
    resolutions and others things.

  • Specified a smaller partition size than the filesystem, using parted

    I felt so sorry to make such a stupid mistake:
    I shrinked the filesystem size with resize2fs, in the next step, I used parted to resize the corresponding partition. But unfortunately, because parted treated 1GB as 1000MB, which is quite different from the Linux system, that made me specified a smaller partition size than filesystem size. As you can predict, this ruined the filesystem. How can I restore my files?
    Last edited by victl (2014-12-07 17:06:55)

    victl wrote:
    ackt1c wrote:Boot Live CD and mount the partition, copy necessities.
    Thank you, I'll try. But is there any method to avoid data lose?
    Backups.
    Not a Sysadmin issue, moving to NC...

  • How to specify logfile size at the time of adding to a member.

    Hi All,
    I am in the process of upgrading Oracle 9.0 to 10.1.
    I am following manual upgrad process.As per the recomendation from the pre-upgrade information script,i need to recreate redo-log files.
    Logfiles: [make adjustments in the current environment]
    --> E:\ORACLE\ORADATA\PRODB229\REDO03.LOG
    .... status="INACTIVE", group#="1"
    .... current size="1024" KB
    .... suggested new size="10" MB
    --> E:\ORACLE\ORADATA\PRODB229\REDO02.LOG
    .... status="INACTIVE", group#="2"
    .... current size="1024" KB
    .... suggested new size="10" MB
    --> E:\ORACLE\ORADATA\PRODB229\REDO01.LOG
    .... status="CURRENT", group#="3"
    .... current size="1024" KB
    .... suggested new size="10" MB
    WARNING: one or more log files is less than 4MB.
    Create additional log files larger than 4MB, drop the smaller ones and then
    upgrade.i can add redo member by the below command,but not able to specicy the size as 10M.I did some googling but no luck with that..
    SQL> ALTER DATABASE ADD LOGFILE MEMBER 'E:\oracle\oradata\prodb229\REDO01.rdo' T
    O GROUP 1;
    but it fails
    ALTER DATABASE ADD LOGFILE MEMBER 'E:\oracle\oradata\prodb229\REDO01.rdo' TO GROUP 2 SIZE 10M;
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ~Thnx

    If you add a logfile to an existing group, you cannot specify the size for that file.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1004.htm#i2079942
    <quote>
    ADD [STANDBY] LOGFILE MEMBER Clause Use the ADD LOGFILE MEMBER clause to add new members to existing redo log file groups. Each new member is specified by 'filename'. If the file already exists, it must be the same size as the other group members, and you must specify REUSE. If the file does not exist, Oracle Database creates a file of the correct size. You cannot add a member to a group if all of the members of the group have been lost through media failure.
    <quote>

  • [svn:bz-trunk] 21277: Added ds-console source to package-oem and removed copy command for datavisualization .swc which doesn't exist in the specified location.

    Revision: 21277
    Revision: 21277
    Author:   [email protected]
    Date:     2011-05-18 11:35:28 -0700 (Wed, 18 May 2011)
    Log Message:
    Added ds-console source to package-oem and removed copy command for datavisualization.swc which doesn't exist in the specified location. I do not find it in the most recent package-oem.zip neither
    Modified Paths:
        blazeds/trunk/build.xml

    Gusar wrote:No, it's not. I have actually seen cases where software rendering gave a higher glxgears score than hardware rendering (and no, it wasn't about vsync). Of course, with *actual* apps on the same machine, software rendering sucked compared to hardware rendering.
    Please do not jump to conclusions and make assumptions here like 'when will people finally get it??'.  I never said it was a benchmark.  I have also seen many examples of where it's results do not go with conventional performance.  I have a Radeon 9000 that goes faster on glxgears than a Geforce FX 5600 running Nouveau.  Which is the faster card?  The FX by miles.  It is not a benchmark as it can not be compared between configurations.  What I know is that on this individual system, from prior experience over many years when 3D acceleration is working glxgears gets between 300 and 400 fps.  When it is not working it gets less than 10.  That is a fact but does not mean it is benchmarkable.  Yes, a Quake 3 timedemo (I have these numbers too and they very much correlate to glxgears performance for this system given just how slow it is) would be a benchmark but when it runs less than 0.1fps and even the 2D rendering means that navigating the menu is impossible, there just isn't the time to find out.  Hence if playing around with drivers on this system I would use glxgears to check that 3D acceleration is working but not to benchmark.  Glxinfo does not give you all this evidence.
    But to clarify, I wouldn't use glxgears as a benchmark, benchmarking is different and I do a lot of that too.

  • Which webpage size is the "most normal" to use?

    Hey everyone out there.
    I'm creating a webpage in Muse. In the Plan-part of the program the page is shown just as I want it, but when I upload it on my browser it looks all wrong.
    It's like my page is too small for the browser, because big white gaps are shown in both the left and the right side. Besides, when I make my browser widescreen, there is also a gap between the footer and the bottom of the browser.
    Anyone out there who know what to do? Or if there is a size for the webpage which is best to use, so it is shown normally in the browser?
    My webpage currently has the size W:1220px H:768px

    Hi,
    Can you please share the Url of your website so that we can have a look and see what is the issue that you are facing.
    And regarding the size of the webpage , please refer to this link :- http://helpx.adobe.com/muse/topics/page-layout.html
    Hope this helps
    Regards,
    Rohit Nair

  • How can I cancel "The Garage Band content is now downloading" once it starts? I thought it would show the size of the download, but it just assumes I have unlimited bandwidth, instead of mobile data rates which are super expensive.

    How can I cancel "The Garage Band content is now downloading" once it starts? I thought it would show the size of the download, but it just assumes I have unlimited bandwidth, instead of mobile data rates which are super expensive.
    Once it started, it just shows it's progress and there's no option I can find to stop the download.
    Any help greatly appreciated.
    Regards,
    Kye.

    Hi,
    I am not sure whether it works, Try "Restore Sound Library" in Menu.

  • Display which method called the method (gives you a headache doesn't it)

    Hi,
    This question might sound a little weird, so maybe read it twice:
    I would like to see which method called the method.
    public void test1()
       test2();
    public void test2()
       System.out.println(....);
    The program output should be, test1 or classname.test1 or something like that. Is that possible?
    Thanx in advance, Yvo van Beek

    This should give you an idea:   public static void main (String args[]) {
          wereAreWe();
          caller2();
        public static void wereAreWe() {
          try {
            throw new RuntimeException("here we are");
          catch (Exception ex) {
            System.out.println("");       
            ex.printStackTrace(System.out);
        public static void caller1() {
          wereAreWe();
        public static void caller2() {
          caller1();
        }You can parse the result of printStackTrace() to get a more precise output.

  • While synchronising it eats 1gb in the name of others which is specified by yellow colour may i know what is this

    while synchronising it eats 1gb in the name of others which is specified by yellow colour may i know what is this

    An other that large is due to corrupted files. To get it down to its normal of about 1/2 GB you need to restore you iPod.  Some times restoring from backup works but sometimes a restore to factory defaults/new iPod is required.

  • When I import my Sony video, which is in m2ts format, the file size is a few times larger.  This affects the volume of clips for creating the blu-ray or DVD discs.  How can I squeeze the file size without sacrificing the quality of output?

    When I import my Sony video, which is in m2ts format, the file size is a few times larger.  This affects the volume of clips for creating the blu-ray or DVD discs.  How can I squeeze the file size without sacrificing the quality of output?  Is there any other ways of achieving this?

    wongrayd wrote:
    Thanks.  I do not have the experience on burning discs from iMovie for the movie after editing (ie for video discs players).  It seems that i cannot find the relevant command in the tool bar for this purpsoe.  Would you please show me the way?
    The command is gone because iDVD has been discontinued by Apple. After Apple discontinued iDVD they removed the iDVD burning link from iMovie. I still use iDVD sometimes, only because I have an old copy.
    wongrayd wrote:
    You have mentioned about Handbrake as a converter.  What is the RF no. (under Constant Quality) meant?  It seems that the smaller the no. is, the better quality will be.  What is the optimal no.? or should we use the Average Bitrate? Again, what is the best rate?  Furthermore, which format is more suitable or the best: H264 or mpeg 2/4?
    I don't know what RF means. When I have used HandBrake, I've used presets that apply to what I want to do, so I don't know the meaning of each individual setting. However, it appears that many of them are listed in the HandBrake User's Guide that is linked from the Help menu in the program:
    https://trac.handbrake.fr/wiki/HandBrakeGuide
    wongrayd wrote:
    For iMac, except iMovie, what other software is the best for the amateur?  I have read Photoshop.  Can this support m2ts files and user friendly?
    Photoshop is not amateur-level software, and although it can edit a video, it cannot burn a DVD. Unfortunately, because I still use iMovie, I haven't tried anything else. You might want to read the reviews of various DVD-burning applications in the Mac App Store.
    And maybe another forum member will jump in and help us here!

  • Which method does the actual bulk fetch from database in ADF?

    Hi,
    I'm looking to instrument my ADF code to see where bottlenecks are. Does anyone know which method does the bulk fetch from the database so that I can override it?
    Thanks
    Kevin

    Hi,
    I think you need to be more specific. ADF is a meta
    data binding layer that delegates data queries to the
    business service
    FrankSorry - to be specific I probably mean BC4J - when a query runs in a view object.

  • Which method can get the computer  screen photograph

    besides the createscreencapture method of robot class,which method have the
    function of grabing computer screen photograph.thank you.

    Do you know and this is some sort of competition to name the other method and class? Or do you not know - in which case: why don't you want to use createScreenCapture()?
    [Edit] I don't think there is a way that doesn't involve the Robot class.

Maybe you are looking for