Tag Info

New answers tagged

0

I think it's mostly for your protection, to avoid deleting a lot of files you don't mean to. You potentially could have lots of directories and files directories under the top=level one, and not know especially when working from the command line, which is where this convention started back before there were GUIs. Furthermore, I don't there is the concept ...


3

Many file systems work with a reference count system for files. ~/foo$ ls -l total 312 -rwxr-xr-x 2 shagie staff 14884 Jan 24 10:35 a.out* -rwxr-xr-x 1 shagie staff 379 Apr 10 13:56 alias.pl* -rw-r--r--@ 1 shagie staff 14236 Apr 10 13:50 aliases.csv -rwxr-xr-x 2 shagie staff 14884 Jan 24 10:35 b.out* -rw-r--r-- 1 shagie staff 137 Feb 17 ...


4

There have been quite few incentives to use them so far, I agree that it is principially a better API, however a load of tutorials on the internet still use File and even my university course, that was given on Java 7, still used File. Though, do not worry, with Java 8 the focus has shifted to the Path API. If you for example want a stream of all files in a ...



Top 50 recent answers are included