Delete every file which size is smaller than 10kb

Hello,
how can I delete every file which size is smaller than 10 kb?? I'd thought that i can do that with the methode "length()"... but nothing happens.
File tryToDelete = new File( ".");
String [] listing = tryToDelete.list();
for (int z = 0; z < listing.length; z ++)
    if ((listing[z].length()) < 10000)      //does anyone know what is wrong here??
         File away = new File(listing[z]);
         away.delete();
}thanks for helping ...

ups... you are right... but I still have an problem...
I want to delete only the files which are smaller than 10 kb and starting with the "http".
But it doesn't work, when I run the code:
File tryToDelete = new File( ".");
String [] listing = tryToDelete.list();
for (int z = 0; z < listing.length; z ++)
    if (listing[z].startsWith("http");
         File away = new File(listing[z]);
         if ((away.length()) < 10000)
         System.out.println(away);
}then he prints me out ALL files which size is smalletr than 10000. But I only want to have the files which starts with "http".
What is my error??

Similar Messages

  • I hav an 8gb iPod iPod touch 4 and according to settings I've got 2.6gb of memory left. However I've tried to download apps which are way smaller than that but it keeps popping up saying not enough memory! Plz explain wats goin on

    I hav an 8gb iPod iPod touch 4 and according to settings I've got 2.6gb of memory left. However I've tried to download apps which are way smaller than that but it keeps popping up saying not enough memory! Plz explain wats goin on

    Top download and install apps you need space available on the iPod equal to about three time the file download size.  If you download more than one app at a time you need about three times the total file download size available so it is better if short on storage to purchase one at a time.

  • ORA-13044: the specified tile size is smaller than the tolerance

    Hi,
    I get the oracle error ORA-13044: the specified tile size is smaller than the tolerance when I do the following point cloud clip:
    8 sdo_geometry(2003,29903, null,
    9 mdsys.sdo_elem_info_array(1,1003,3),
    10 mdsys.sdo_ordinate_array(316504,316510,234084,234090)),
    However the bounds of my point cloud are
    316500 to 316511 and 234080 to 234092 and my tolerance during point cloud creation is set to 0.000015 (I have alterated this value before to make it smaller but nothing seems fit).
    Where do I set the "tile size"?
    The set consists of 100 points and blk_capacity is set to 50.
    Any help is really greatly appreciated.
    Cheers,
    F.

    Hi BKazar,
    thanks for responding.
    Yes, I tried out all sorts of things and swapped the numbers to see if that would fix the issue. It did not.
    I have found out now though what the issue was. When I loaded the data file into Oracle, the guy who gave me the file said that the first column is the longitude, but it wasn't. After switching sdo_point.x and y the error disappeard.
    I suppose the sdo_srid was expecting a different range and got confused because my long and lat were swapped.
    Cheers,
    F.

  • Error while deleting a file which is in a folder which inturn in workspace

    12:20:42.309  DELETE  (FAILED: Conflict [(pre||post)-condition failed: x:concurrency-lock-denied])  Hello.java   (C:\CFolder1\WSF1\WSF2\Dev\HelloWorld\Package\Hello.java)
    --- Problem summary: ---
    12:20:42.309  DELETE  (FAILED: Conflict [(pre||post)-condition failed: x:concurrency-lock-denied])  Hello.java   (C:\CFolder1\WSF1\WSF2\Dev\HelloWorld\Package\Hello.java)
    I am getting above error while deleting a file which is in a folder which inturn in workspace

    Here is the problem I have with deleting my folder. I had created a WD project TaxTool and and added the DC to my SC. There were obviously some checkedout activities. Being new to this, I deleted the project directly without checking in the activities. Now I have folder TaxTool/_comp with nothing underneath on the DTR server and on my client. I am unable to checkout TaxTool for delete but the checkout of _comp folder fails in NWDS with the following error:
    <b>EDIT  (FAILED: server response: Conflict [(pre||post)-condition failed: x:no-exclusivity-with-existing-checked-out-resources])  comp   (C:\JDI\JDIDEMO1\intelJDI_TEST\dev\inactive\DCs\intel.com\TaxTool\_comp\)</b>
    If I try the same from the DTR shell, I get this following error:
    <b>Unexpected problem occurred during executing command.Lockfile "C:\Documents and
    Settings\bvedamur\.dtr\.syncdbs\5b0d8b2110a7a29883734c0407462df8.syncdbM.lock" is already in use by another process.</b>
    I am the only user in the system (doing R&D) and I have tried Sync and Delete. Nothing works. Help appreciated.
    Thx
    Bhaskar

  • Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    The Cloud is not a program, it is a delivery process... a program would be Photoshop or InDesign or Muse or ???

  • VAULT size is smaller than the LIBRARY

    my vault size is smaller than the aperture library.  is it saving everything?  it seems like the two should be the same size or at least close to the same size.  i regularly update my vault so that it is current with the library.  VAULT = 168 GB | LIBRARY = 262 GB

    what is the consequence if i totally turn previews off?
    The major consequence is that you will not be able to share images from your library through the media browser. So if you want to email an image for example or add an image to a document you will need to export the image first rather then be able to get the preview from the library.
    Also if you have referenced originals and the originals go off-line nothing will appear in the library. If you had previews for those images you would still see them and be able to do tasks like rate them.
    Finally some operations might appear slower as you won;t see anything on the scree until the image you are looking at is rendered. With previews while Aperture is rendering the image in the background it will display the preview.
    It is possible to selectively maintain previews for some projects and not for others. This might be a comprise position between having previews for al images and having no previews at all.

  • Adobe PDF files are printing out smaller than 8 1/2 by 11; only happens on Firefox not IE.

    I downloaded the latest free version of Adobe Reader.
    Now on Firefox, the page view is surrounded by a black screen. I can increase the view size, and have the document fill the whole page. However, when I go to print, the document prints smaller than an 8 1/2 x 11 page with black space (almost as if I scanned something without a cover) all around it.
    Not only is it difficult to read some files, I'm wasting black ink.
    I happened to be on another site using Internet Explorer and when I downloaded a file using that browser, everything was normal. No unusual size dimensions, no problems printing.
    Seems to be a Firefox issue.
    Any suggestions?

    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or to Always Ask.
    *Tools > Options > Applications
    *http://kb.mozillazine.org/File_types_and_download_actions
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer and use the Adobe Reader instead.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • In smartform folder's size appears smaller than main window

    Hi all,
    I used folder and table in main window. table takes the width of main window but folder does not takes. in print preview folder's size appears small then table. please suggest how to increase the size of folder.
    regards
    shahid

    Hi,
    Try this way , First create a window inside the main window then create your folder node. Generally if you are creating a node inside the node it takes the default of main window.
    Thnaks,
    Abhijit

  • After importing a Light Room catalog, the files I export, export smaller than the originals - with every option of file ending.  I want to export them as DNGs but the files are reduced from around 5000 pixels to about 1700 pixels in length.

    Hi All ~ Thanks in advance for your help! 
    I have been on a support chat with Adobe for 2 hours now and they can't figure this out but hopefully one of you can! 
    I exported my files as a LightRoom Catalog
    I zipped the catalog and the smart previews together
    I sent the zipped folder via Dropbox to a photo editor
    Editor edited the photos
    Editor exported the files as a Lightroom Catalog and zipped them
    Editor sent the LR Catalog back to me via Dropbox
    I opened the Lightroom Catalog in LR (the pixel dimensions are the same as the originals)
    I exported the photos as DNG's (which does not allow for any file size changes - I also tried JPGs and the same thing happened)
         Camera Raw 7.1 and later (I tried them all just to see - and they all rendered the same result)
         Embed Fast Load Data (checked on)
         Embed Original Raw File (check on)
    I checked the Pixel dimensions on my exported photos and they are smaller
    The original pixel dimensions are:
    4912x7360 and the new size (after exporting) is: 1709x2560
    But here's the real kicker!  WHEN I UPLOAD A PHOTO TO LIGHTROOM FROM MY COMPUTER DIRECTLY (not from a LR catalog), AND EXPORT THAT FILE, IT EXPORTS AT FULL SIZE with no change in the pixels dimensions!

    Hi All ~ Thanks in advance for your help! 
    I have been on a support chat with Adobe for 2 hours now and they can't figure this out but hopefully one of you can! 
    I exported my files as a LightRoom Catalog
    I zipped the catalog and the smart previews together
    I sent the zipped folder via Dropbox to a photo editor
    Editor edited the photos
    Editor exported the files as a Lightroom Catalog and zipped them
    Editor sent the LR Catalog back to me via Dropbox
    I opened the Lightroom Catalog in LR (the pixel dimensions are the same as the originals)
    I exported the photos as DNG's (which does not allow for any file size changes - I also tried JPGs and the same thing happened)
         Camera Raw 7.1 and later (I tried them all just to see - and they all rendered the same result)
         Embed Fast Load Data (checked on)
         Embed Original Raw File (check on)
    I checked the Pixel dimensions on my exported photos and they are smaller
    The original pixel dimensions are:
    4912x7360 and the new size (after exporting) is: 1709x2560
    But here's the real kicker!  WHEN I UPLOAD A PHOTO TO LIGHTROOM FROM MY COMPUTER DIRECTLY (not from a LR catalog), AND EXPORT THAT FILE, IT EXPORTS AT FULL SIZE with no change in the pixels dimensions!

  • Why is the Log Area size much smaller than the log volume

    I have been following up on an Early Watch report that has been generated for our production SCM 5.0 system running liveCache 7.6.02 Build 14.  The alert says "The LOG volumes size in your system is too small. Recommendation: Configure LOG Volumes to at least 2 GB".  There are two interesting things about this.
    1) I have spent the last couple of days reading all the OSS Notes, and MaxDB documentation I could find, and this does not seem to be documented as a recommendation anywhere.  Does this seem like a realistic recommendation without taking into account the level of change actifity?
    2)  There is a single log volume allocated with size 2,097,160 KB.  In production LC10 and DBMGUI report this to be correct size under volume details, but only list the total log area size as 1,706,328 (81% of the volume size).  We have a non-production environment with exactly the same size log volume, but it reports that the log area size is 2,032,008 KB (97% of the volume).  What leads to these different amounts of wasted space, and is there any way of getting the database to start using it?
    Thanks,
    Mark

    Hi Natalia,
    I did read 869267, several times.  It does not answer my questions which is why I posted here.
    DBMGUI version = 7.6.00.25
    DBMCLI commands for PL1 (Production)
    > xinstinfo PL1
    IndepData           : /sapdb/data
    IndepPrograms       : /sapdb/programs
    InstallationPath    : /sapdb/PL1/db
    Kernelversion       : KERNEL    7.6.02   BUILD 014-123-152-175
    Rundirectory        : /sapdb/data/wrk/PL1
    > dbmcli -d PL1 -u control,control
    dbmcli on PL1>db_state
    OK
    State
    ONLINE
    dbmcli on PL1>info log
    OK
    END    
    Name                            | Value
    Log Mirrored                    = NO
    Log Writing                     = ON
    Log Automatic Overwrite         = OFF
    Max. Size (KB)                  = 1706328
    Backup Segment Size (KB)        = 699048
    Used Size (KB)                  = 104640
    Used Size (%)                   = 6
    Not Saved (KB)                  = 104640
    Not Saved (%)                   = 6
    Log Since Last Data Backup (KB) = 0
    Savepoints                      = 5210
    Checkpoints                     = 0
    Physical Reads                  = 2469115
    Physical Writes                 = 15655616
    Queue Size (KB)                 = 48000
    Queue Overflows                 = 646
    Group Commits                   = 98205
    Waits for Logwriter             = 10957511
    Max. Waits                      = 10
    Average Waits                   = 0
    OMS Log Used Pages              = 0
    OMS Min. Free Pages             = 0
    dbmcli on PL1>param_getvolsall
    OK
    LOG_MIRRORED                     NO
    MAXLOGVOLUMES                    2
    MAXDATAVOLUMES                   14
    LOG_VOLUME_NAME_001              262145     F  /sapdb/PL1/saplog/DISKL001
    DATA_VOLUME_NAME_0001            524289     F  /sapdb/PL1/sapdata/DISKD0001
    DATA_VOLUME_NAME_0002            524289     F  /sapdb/PL1/sapdata/DISKD0002
    DATA_VOLUME_NAME_0003            524289     F  /sapdb/PL1/sapdata/DISKD0003
    DATA_VOLUME_NAME_0004            524289     F  /sapdb/PL1/sapdata/DISKD0004
    DATA_VOLUME_NAME_0005            524289     F  /sapdb/PL1/sapdata/DISKD0005
    DATA_VOLUME_NAME_0006            524289     F  /sapdb/PL1/sapdata/DISKD0006
    DATA_VOLUME_NAME_0007            524289     F  /sapdb/PL1/sapdata/DISKD0007
    DATA_VOLUME_NAME_0008            524289     F  /sapdb/PL1/sapdata/DISKD0008
    DATA_VOLUME_NAME_0009            1048577    F  /sapdb/PL1/sapdata/DISKD0009
    DATA_VOLUME_NAME_0010            1048577    F  /sapdb/PL1/sapdata/DISKD0010
    DATA_VOLUME_NAME_0011            1048577    F  /sapdb/PL1/sapdata/DISKD0011
    DATA_VOLUME_NAME_0012            1048577    F  /sapdb/PL1/sapdata/DISKD0012
    dbmcli on PL1>param_directget MAXCPU
    OK
    MAXCPU  12
    dbmcli on PL1>param_directget MAX_LOG_QUEUE_COUNT
    OK
    MAX_LOG_QUEUE_COUNT     0
    dbmcli on PL1>param_directget LOG_IO_QUEUE
    OK
    LOG_IO_QUEUE    6000
    > xinstinfo SL1
    IndepData           : /sapdb/data
    IndepPrograms       : /sapdb/programs
    InstallationPath    : /sapdb/SL1/db
    Kernelversion       : KERNEL    7.6.02   BUILD 014-123-152-175
    Rundirectory        : /sapdb/data/wrk/SL1
    dbmcli on SL1>db_state
    OK
    State
    ONLINE
    dbmcli on SL1>info log
    OK
    END    
    Name                            | Value
    Log Mirrored                    = NO
    Log Writing                     = ON
    Log Automatic Overwrite         = OFF
    Max. Size (KB)                  = 2032008
    Backup Segment Size (KB)        = 699048
    Used Size (KB)                  = 3824
    Used Size (%)                   = 0
    Not Saved (KB)                  = 3824
    Not Saved (%)                   = 0
    Log Since Last Data Backup (KB) = 0
    Savepoints                      = 1256
    Checkpoints                     = 0
    Physical Reads                  = 2178269
    Physical Writes                 = 4969914
    Queue Size (KB)                 = 16000
    Queue Overflows                 = 21201
    Group Commits                   = 643
    Waits for Logwriter             = 751336
    Max. Waits                      = 4
    Average Waits                   = 0
    OMS Log Used Pages              = 0
    OMS Min. Free Pages             = 0
    dbmcli on SL1>param_getvolsall
    OK
    LOG_MIRRORED                     NO
    MAXLOGVOLUMES                    2
    MAXDATAVOLUMES                   10
    LOG_VOLUME_NAME_001              262145     F  /sapdb/SL1/saplog/DISKL001
    DATA_VOLUME_NAME_0001            262145     F  /sapdb/SL1/sapdata1/DISKD0001
    DATA_VOLUME_NAME_0002            262145     F  /sapdb/SL1/sapdata2/DISKD0002
    DATA_VOLUME_NAME_0003            1048577    F  /sapdb/SL1/sapdata3/DISKD0003
    DATA_VOLUME_NAME_0004            1048577    F  /sapdb/SL1/sapdata4/DISKD0004
    DATA_VOLUME_NAME_0005            783501     F  /sapdb/SL1/sapdata1/DISKD0005
    DATA_VOLUME_NAME_0006            783501     F  /sapdb/SL1/sapdata2/DISKD0006
    dbmcli on SL1>param_directget MAXCPU
    OK
    MAXCPU  4
    dbmcli on SL1>param_directget MAX_LOG_QUEUE_COUNT
    OK
    MAX_LOG_QUEUE_COUNT     0
    dbmcli on SL1>param_directget LOG_IO_QUEUE
    OK
    LOG_IO_QUEUE    2000
    Thanks for the explaination of the reserved space for the Log Queue pages.  This does explain why there is the difference between the two.  I think we probably have our log segment size too large.  As you can see we do get occasional log queue overflows.  Do you suggest we increase the size of our log IO queue higher, and allocate more log volume space to compensate?
    select * from SYSINFO.LOGSTATISTICS (on PL1)
    1706328;334176;19;334176;19;1879;20305192;64109066;7806480;182151514;12;48000
    DBMGUI Log Area Usage
    Total Size: 2048.01 MB
    Free Log Area: 1330.38 MB
    Used Log Area: 335.96 MB
    Unsaved Log Area: 335.96
    Log since Last Data Backup: 0.00 MB
    Thanks,
    Mark

  • IPhone 3G physical phone size is smaller than others?

    I have noticed that my iPhone 3G (16gb) is actually shorter (in size) than my wife's? I use the Inspiretech case and have noticed that my phone actually shifts around a little bit but when I put my wife's phone in there, it holds the phone correctly and doesn't shift. I also experienced this with my first case which was a DLO-Jam Jacket where the phone would slide down the jelly like case a little bit. My wife's phone did not do this in the Jam Jacket either. Has anyone experienced this before? I have modified my latest case by stuffing a couple pieces of folded up paper in it to make up the extra space. Is this something I should worry about? Will this forever be a neusance?

    This is my case (http://www.inspiretech.com/p-377-iphone-3g-full-protector-case-blue.aspx) and it's for the 3G and it fits my wife's 3G snuggly. I'm thinking my phone is a few millimeters shorter. Almost a manufacturing defect that will just be a neusance the rest of the phone's life

  • Download to Ex-Cel file which contains data more than 65533 approximately

    I want to download the SAP report which contains more than 180000 data appr. into excel file but ex-cel can accomodate only 65533 in one worksheet ( i.e., tab).  Kindly tell me how to download the output into ex-cel file.
    Thanks in advance
    Renuka

    You can't handle more than 65000 line in Excel.
    One way, is to donwload the file in a "csv" format and then open it with access...
    Hope this helps,
    Erwan.

  • I saved a profile to my desktop then deleted it and it deleted other files which I can no longer find

    I created a profile and saved it to the desktop. (I have read since then not to do this but it's too late). I then deleted the profile and all the files. When I did this it deleted everything I had saved on my desktop. I have searched the hard drive for the files and they are nowhere to be found. Is there anyway to recover them?

    You will have to use an undelete utility like Recuva to get those files back.
    *Recuva: http://www.piriform.com/recuva
    You should never specify an existing folder for a new profile unless that folder is an existing profile.
    If you remove the files in the profile when you delete that profile via the Profile Manager then all files will be removed as you've found out.

  • Clip Size Imported Smaller Than Original Clip

    I imported a QT movie 3.69GB into iMovie and the imported movie was 650mb. I guess using iMovie all this time I just assumed that the size of the clip would be the same after importing into iMovie. Can someone tell me why the drop in file size? Thanks.

    It was a clip from a DVD that I had saved at the highest quality as a QT movie no compression using Cinematize.
    When I imported the clip into iMovie I used no compression 29.97 fpm, 640 by 480, and sound was stereo, 48hz, 16 bit.

  • Delete Adobe file which was downloaded

    Hey Can anyone help me delete a pdf file I downloaded from the net. I have finished with it but cant see how to delete it.

    What type of handset do you have??
    Today Me Tomorrow You

Maybe you are looking for

  • How to upload data

    Dear Hussien, I have the customer master list . now i want to upload, can u please guide me how to achieve this? There is two tables 1. hz_parties 2. hz_cust_accounts_all Can anyone guide me how to upload data in the telesales module ? i know through

  • Control Query for broadcaster

    Hi al, I need to send a report by mail in PDF format to a user which is a filtered report of a general report. Meaning: I have a general report of sales (A) and I need to send by e-mail report A filtered by sales group and by current month (B). In or

  • Organizational Unit Synchronization & User Movement  with Active Direct

    Hi All, Can anybody put some light on (Organizational Unit Synchronization) or can ref some doc links. Anticipating Help from you folks. Thanks Randhir Singh

  • Magic Moves not always Magic (non-linear slide orders)

    Magic Moves opens the possibility of non-linear slide orders with animated transitions. Previously in keynote (KN '08), as far as I could ascertain, this was impossible. Now a slide with several hyper-linked objects can enjoy an animation of the on s

  • Flash islands

    Hi All I want to start developing an adobe flash island component. I understand that I can only develop in Flex SDK version that is lower then 3.4. My problem is that I can only download adobe flash builder 4 (this is the only version purposed in ado