×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    136

    parameter of directorySize()

    What is the parameter of this method? In the book I read, no parameter is used for that method.
    public long directorySize()

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: parameter of directorySize()

    As per the API doc it takes a boolean;

    directorySize


    public long directorySize(boolean includeSubDirs)
    throws java.io.IOException

    Determines the size in bytes on a file system of all of the files that are contained in a directory.

    Returns:
    The size in bytes occupied by the files included in the directory, or -1 if the directory does not exist or is not accessible.

    Throws:
    java.io.IOException - if the method is invoked on a file.
    java.lang.SecurityException - if the security of the application does not have read access for the directory.
    IllegalModeException - if the application does have read access to the directory but has opened the connection in Connector.WRITE mode.
    ConnectionClosedException - if the connection is closed.
    Thanks,
    Ekta

Similar Threads

  1. Commandline parameter
    By ahkhan in forum Symbian
    Replies: 5
    Last Post: 2008-12-03, 16:03
  2. About ActivateViewL parameter
    By somowo in forum Symbian
    Replies: 2
    Last Post: 2007-11-30, 08:42
  3. cimd parameter
    By nagra in forum General Messaging
    Replies: 1
    Last Post: 2003-04-08, 07:12
  4. Parameter replacement
    By cass1010 in forum WAP Servers
    Replies: 0
    Last Post: 2002-10-15, 15:19
  5. Parameter passing
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-15, 02:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×