Why does OS X Finder recognize a folder as a file when it counts the number of files?
When I select a folder in Finder and click cmd+i(or cmd+option+i), it shows the number of files in the folder. However, that number is weird for me, because they count a folder itself as a file. For example, when I have a single file in my Download folder and I clicked cmd+i on Download folder, then the number of files in a inspection window is 2, not 1. It is because that number includes not only the file inside the folder, but also the folder itself. (Check the below image)
This is not a big problem if there is no hierarchical structure in my folder. But, if I have thousands of files and folders inside, it is really hard to figure out how many files(not folders) are inside. I cannot understand why Mac OS X counts a folder as a file. In fact, a folder is not an actual file, just a container.
So, is there any philosophy to do like this? Or is there any way to count only the number of actual files?
Sorry byron1st
there is no way to count only files in a folder.
Finder will count everything inside, folders and files.
Information about a folder will count the same.
If there are no subsubfolders in one folder, maybe a little trick can help:
Select list view for the open folder, close all subfolders.
Type command+# to see the footer of the window, that counts (hopefully) only the closed subfolders (content) in the open folder.
Remember the amount.
Hold option and click on one triangle in front of one subfolder. All subfolders will be opened!
The difference between amount a and amount b is the number of files (and subsubfolders, if unfortunately inside…).
Similar Messages
-
Programatically count the number of files in a folder
Hi Folks
I need to programatically count the number of files in a given folder and return the value to a Program Unit to be included in further processing.
Can anyone point me in the right direction. I have looked at UTL_FILE but this does not offer what I want.
Does anyone know of an obscure package in Oracle that I could use?
I'm using 9i in a W2K environment.
Many thanks
Simon GaddHi,
following a java based solution i found somewhere on Tom Kyte's AskTom forum.
GRANT JAVAUSERPRIV to TESTUSER;
dbms_java.grant_permission( 'TESTUSER', 'SYS:java.io.FilePermission', 'c:\', 'read' );
create global temporary table DIR_LIST
( filename varchar2(255) )
on commit delete rows
create or replace and compile java source named "DirList"
as
import java.io.*;
import java.sql.*;
public class DirList
public static void getList(String directory)
throws SQLException
File path = new File( directory );
String[] list = path.list();
String element;
for(int i = 0; i < list.length; i++)
element = list;
#sql { INSERT INTO DIR_LIST (FILENAME)
VALUES (:element) };
create or replace procedure get_dir_list( p_directory in varchar2 )
as language java
name 'DirList.getList( java.lang.String )';
exec get_dir_list( 'c:\temp' );
select count(*) from dir_list; -
It started couple of months ago. In the beginning it crashed only on some Youtube channels. Like if I clicked o a video that was on a proper channel like "BBC", the page loaded but in the middle it suddenly crashed with the error "Firefox has encountered a problem and needs to close". Then when I use to restart firefox it would say that it probably happened because of a new tab.
Now I am fed up. The problem has grown from certain youtube channels now to Yahoo mail, some other news websites today even Facebook! It logs me in to Fb but if I open a Fb page in a new tab it crashes. Now I even can't use Fb. I don't know whats wrong. I've tried the Firefox help and got my Crash Signature and now am posting the most recent one along with this Q.
Crash Signature: hang | mozilla::plugins::PPluginInstanceParent::CallPBrowserStreamConstructor(mozilla::plugins::PBrowserStreamParent*, nsCString const&, unsigned int const&, unsigned int const&, mozilla::plugins::PStreamNotifyParent*, nsCString const&, nsCString const...Start in Safe mode again and then click the option to '''Disable All Add-ons''' followed by "'''Makes Changes and restart'''",
Then it's simply a case of re-enabling them one-by-one until the problem recurs. Then you know it was the previous one which is causeing the problem.
The add-ons manager is accessible by clicking '''Tools '''| '''Add-ons '''| '''Extensions'''. Laborious I know but it's the only way of doing it. -
Recently, using FF 3.6.8 and 3.6.9, after I've used Ashampoo Magic Optimizer, certain news websites only show up in a bullet-pointed low-resolution text without any graphics. Other websites appear in their normal way. Accessing these lo-res websites via IE browser, they all appear in their full-resolution normal way. Then, some days later, it all comes right again on Firefox.
This may be related to session restore.
*[https://bugzilla.mozilla.org/show_bug.cgi?id=774943 bug 774943] - Session restore puts "+" button in the wrong spot and hides first tab
*[https://bugzilla.mozilla.org/show_bug.cgi?id=714382 bug 714382] - Leftmost tab is hidden when reopening browser window
<i>([https://bugzilla.mozilla.org/page.cgi?id=etiquette.html please do not comment in bug reports])</i> -
What is going on at Apple, mail keeps asking for a password, that when I enter, it ignores, my imac is telling me it cannot talk to the Yahoo server, but I can get through every time on Safari. This is driving me nuts!!!
you are lucky i will say,
i got problems with email, update,id,keyboard mistyping, wifi, they said they will send me one they never did, and don't reply anymore, after 55 days witha 3 years warranty. good luck. i swear it is true. -
So i have an iPhone 3GS and when i move the phone while its restarting, a white screen shows up, and sometimes i need to punch it to turn it on. HELP i dealt with this problem for months and im sick of it! HELP ME!!!!
Sounds like hardware failure, called boot loop. Call Apple and or go on apple.com and make Genius Bar appointment to have your iphone reviewed by a Tech. Provided you iphone shows no physical or liquid damage they will take care of you, or if you have Apple Care Plus
Genius Bar Rerservation : http://www.apple.com/retail/geniusbar/ -
This is a revenue impacting issue for out application. If customers are full screen they think our application's Upload your file" button is broken so we are being over run with support escalations for this issue.
Is there a setting that we can advise them to change?
Thanks a lot;
Bobby'''[https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox]''' {web link} is a '''LAST RESORT ! !'''
Reset Firefox -- easily fix most problems
If you're having problems with Firefox, resetting it can help. The reset
feature fixes many issues by restoring Firefox to its factory default state
while saving your essential information like bookmarks and open tabs.
But first load and use these add-ons.
These add-ons can be a great help by backing up and restoring Firefox
'''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link}
FEBE allows you to quickly and easily backup your
Firefox extensions, history, passwords, and more.
In fact, it goes beyond just backing up -- It will actually rebuild
your saved files individually into installable .xpi files.
It will also make backup of files that you choose.
'''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link}
Import/Export extension preferences -
Hi all,
Can any one tell how to get the number of files(.EPS) count inside a folder when the folder path is specified in VC++ 6.0?
Thanks in Advance.
Regards
myriazI'm a little confused by the question, but it sounds like you're asking how to count the number of files with a particular extension in a given directory? That's not really an AI SDK question, but it's a fairly easy one to find if you google it. If you're trying to use Illustrator to do it, AI doesn't have a general purpose file API. It has a few functions to do some things that Illustrator needs, but I don't think enumerating directories is one of them.
-
Why won't my laptop recognize my iPod nano second generation when I plug it in via USB? It does recognize my ipad mini. I was hoping to transfer music from my iPod to my ipad mini
1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
3. Check the USB cable
4. Verify that Apple Mobile Device Support is installed
5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
6. You can use some third party software like this iPod file transfer, it can help you copy files from iPod to computer, and then you can use iTunes to sync the music to your iPad mini.
7. Check for third-party software conflicts. -
Why does elements 11 not recognize nikon nef files
I have been using Elements 11 for quite a while for Canon Raw files with great success. It really works fine for me.
I recently bought a Nikon D300. For some reason Elements 11 will not recognize the Nikon NEF raw files.
W H Y ? ? ?Thank you for your reply.
Answers to your questions:
I am using Win7 64 bit. Elements 11 has worked just fine until I attempted to process NEF files.
I always copy files to my HD before trying to process any.
How do I check to see if my Camera Raw module is current? EVERY time, regardless of day of the week or time of day, when do the Help/Update thing I ALWAYS get that message block about website is busy, try again. I'll bet I've tried it over a hundred times over the past two weeks or so. I have a feeling that it can't be that busy for that long. Or, maybe I'm just unlucky, or maybe your server is too small to handle the load.
Needless to say, I am really frustrated with Adobe.
Again, thank you for your reply, and hopefully my answers will provide a solution.
Regards,
ChuckWagner
R_Kelly <[email protected]> wrote:
R_Kelly created the discussion
"Why does elements 11 not recognize nikon nef files"
To view the discussion, visit: https://forums.adobe.com/message/6643873#6643873
> -
Why does my iphone 3gs screen go white after it goes "to sleep" for the first time after turning it on?
The screen isn't broken because it works after i turn the device off and back on, but after it goes black once, it's only white again.
But it takes the touches although it's only white, because I can answer my phone when I slide my finger on the bottom of the screen, eventhough there in not the button to see.
This is so weird. I have already done everything I can think of that might help. But I cannot think of anything that might be causing it, because nothing has happened to the device.Let me know if I should start a new discussion instead of opening a new topic here.
My wife's iPhone is the same vintage as mine 3Gs, but has never had the battery problem. Its affliction instead is that it cannot detect WiFi networks unless it is quite close to the source. Often, when my iPhone not only detects but shows a maximum cells connection with a network, hers cannot detect the network at all. In contrast, her iPhone seems to detect ourcellular carrier just as well as mine does.
Is there any help for this affliction? -
why does my apple id in app store settings show one thing and in the apps it shows a different id (ccl43) no email address)
I am unsure what to do I cannot get into my apps account in order to upgrade it. HELP PLEASE!!!!!!It's the Apple ID that app was purchased with.
-
Where to find the number of files in a folder (in Finder)?
I just upgraded from Snow Leopard.
In the past I could look at the bottom of the finder window and see how many files where in a particular folder. And how much megawattage they respresented in total.
Is there some kind of preference I can set in Mountain Lion to be able to see the 'number' of files in a given folder?
All ears,
BenThank you Kurt,
You're an ace.
Much appreciated.
Ben -
Why does my MacBook Pro make background music and video quieter when I am on FaceTime?
Why does my MacBook Pro make background music and video quieter when I am on FaceTime? When my girlfriend and I are trying to watch a movie on Netflix together while on FaceTime my MacBook Pro always decreases the volume of any background sound on my computer so I can barely hear it. Is there a way to fix this? Thank you!
Have the same issue too. Apple can you please change this annoying feature. You are making long distance relationships more difficult.
I like how Facetime was with the old iOS, where nothing was dimmed. OR at least maybe if you could give users the option to turn on or off dimming of facetime. -
Why does my hard drive state I have used 500 gb when I have only used 280 gb?
Why does my hard drive state I have used 500 gb when I have only used approximately 280 gb?
Have you emptied your trash lately...
Also... See these links...
Apple ML = Increase Disc Space
http://support.apple.com/kb/PH10677
See Here > Where did my Disk Space go?
And Here > The Storage Display
Maybe you are looking for
-
Hi All. Mountain Lion for some stupid reason keeps shutting down and rebooting on me. It is random and not associated with any particular task or program/software. I tried reinstalling Mountain Lion but the f'n thing still keeps doing it. I am trying
-
DB insert after DB delete in a single program on the same table
Hi All, A program is first deleting some records from a databse table ( assume Table1) and it is trying to insert the same records back to the table Table1 with the same primary keys. This program is defective. It does not check against the table Tab
-
my itunes store isnt loading properly and i am getting error 1202 on all requests
-
Increase File attachement size/number of attachments
Hello all, Is there any way to raise the MAXIMUM file attachment size limit in Service Manager? We have a need to have more than 10 attachments to a request and have those attachments be more than 10mbs each (the max in the GUI). Has anyone figured o
-
FIM Set membership not evaluating
Hi In the FIM Portal, we use a number of sets and MPRS to run workflows and previously have had no problems. We're having a difficulty with a particular set of "Requests" where we want to run a workflow if a Request is denied to email a 3rd party.