News for hackers. Stuff that matters.
Re:A surprising way to lose your files on Windows by WalterBright on Saturday October 01, 2022 @03:14PM (#33049153)
> This wasn't obvious to the user because Explorer hides the 'detail' of the file path and simply shows the username

I really really dislike Windows when it hides paths, for example, "My Pictures". Where the heck is that?

This lunacy infects Windows applications, like Quicken and Thunderbird, which spew themselves and their data into gawd knows where hidden directories. Why can't they simply do the obvious? Create a \Quicken directory in the root, and have a \Quicken\program and \Quicken\userdata ? But noooo.

Re:A surprising way to lose your files on Windows by mananaysiempre on Saturday October 01, 2022 @03:44PM (#33049391)
> Why can't [Quicken and other Windows apps] simply do the obvious? Create a \Quicken directory in the root, and have a \Quicken\program and \Quicken\userdata ?

Networked machines. (Aside from the obvious security problems on a multi-user installation.) The "gawd knows where hidden directories" (of which there are two, %APPDATA% and %LOCALAPPDATA%, plus, on a recent Windows version, a number of compatibility links and some sort of integrity level thing) are segregated into the part which should have an authoritative copy on the file server ("roaming") and the part that can or has to stay on the workstation ("local").

Re:A surprising way to lose your files on Windows by carrolldunham on Saturday October 01, 2022 @10:18PM (#33052183)
I can't believe windows doesn't offer an option "this is my laptop, nobody else is ever going to use it". I hate logging in to my own laptop and having a user folder like some loser student in a library
Re:A surprising way to lose your files on Windows by navjack27 on Sunday October 02, 2022 @12:50AM (#33052967)
Every OS is like this... Except Haiku.

And you aren't the only user on pretty much every OS. There are many many many built in "users" for different internal operations.

Re:A surprising way to lose your files on Windows by smaudet on Sunday October 02, 2022 @11:56AM (#33057039)
Not relevant. Every OS also has different levels of user.

Your user should be the admin, shouldn't be tied a profile etc. Linux is setup like more like this.

Yeah, it makes it more complex for certain network style things (you have 4 computers and want to sync between them), but it's trivial to work around.

The reason Windows is built like this is they develop first for enterprises and libraries, everyone else gets the shitty castoffs...

Re:A surprising way to lose your files on Windows by Razengan on Sunday October 02, 2022 @08:49AM (#33055482)
If you were a student in a library you’d know that’s a computer literacy issue.
Re:A surprising way to lose your files on Windows by DoingIsLearning on Saturday October 01, 2022 @03:57PM (#33049493)
> I really really dislike Windows when it hides paths, for example, "My Pictures". Where the heck is that?

Android has been copying Apple in that it now also has automagic folders and file managers. I also remember Google doing some idiotic A/B tests some moons ago of hiding the actual page result URL, it was one of the reasons (on top of search quality) that I stopped using it.

On Android you now have to go through multiple settings to enable explicit paths as if was somehow an 'advanced' feature to show an explicit file path.

I assume it is mostly driven by UX somehow it is now an agreed truth that file manager abstractions are too complex for the average user to grasp therefore must be vigourously hidden at all cost.

Re:A surprising way to lose your files on Windows by amelius on Saturday October 01, 2022 @04:56PM (#33050029)
The idea that Apple are experts in UI/UX has to stop. Nobody should be copying them.
Re:A surprising way to lose your files on Windows by oneplane on Saturday October 01, 2022 @05:35PM (#33050356)
That could apply to HN users as well; the idea that we are the general user population has to stop. Nobody outside of our bubble actually maintains their file hierarchy.

Or to people in different age brackets: for a few years now, people have finished uni while doing all their work on phones and tables without a desktop OS involved. No files, no desktop, no actual applications. We should stop copying desktop mentalities into modern workflows.

Or the other way around: nobody has desks or paper folders in file cabinets anymore, nobody needs to physically handle files and organise them, nor do their have boxes for physical mail that comes "in" and goes "out". We should stop copying legacy office concepts into software.

Re:A surprising way to lose your files on Windows by kbelder on Sunday October 02, 2022 @02:09AM (#33053325)
Nonsense. Are you not around 'normal' people? Any perfectly average Joe or Jane who uses Word or Excel as part of their job, or does a little drawing or gaming on the side, understands file structures, creates directories, organizes their docs.

They aren't morons. They don't necessarily understand all the complexities, like aliased folders, etc., but that's because they don't need to and so haven't tried.

Re:A surprising way to lose your files on Windows by orf on Sunday October 02, 2022 @10:54AM (#33056372)
A significant portion of people dump everything on their desktop.

But parent is right. Nobody is out here maintaining and pruning their beautiful directory hierarchy, and complaining about how messy applications make their home directory. Because nobody turns on “show hidden files”. Nobody cares.

Re:A surprising way to lose your files on Windows by smaudet on Sunday October 02, 2022 @12:05PM (#33057145)
Nobody is maintaining file hierachies, but everyone manages files, folders, whether they are explicitly exposed via file manager or not.

These are organizational concepts, not software concepts. People, even mobile uni students, have and must master them. As a result they get reinvented constantly in/as apps.

What people are mad about is people are told 'this is how you will organize' rather than just learning to organize. It is absolutely fucking stupid.

Re:A surprising way to lose your files on Windows by Fire-Dragon-DoL on Tuesday October 04, 2022 @02:25AM (#33077180)
My mother doesn't understand what a window is, but has a complex file hierarchy with her own conventions.
Re:A surprising way to lose your files on Windows by gsinclair on Saturday October 01, 2022 @11:38PM (#33052602)
Plenty of professional people have to maintain a file hierarchy despite their having no general interest in computers. I see it around me all the time.
Re:A surprising way to lose your files on Windows by amelius on Sunday October 02, 2022 @09:11AM (#33055605)
As far as I know, MacOS still has hierarchical folders, so "Nobody outside of our bubble actually maintains their file hierarchy" seems a little off.

So actually the problem is worse. Apple is schizophrenic about folders and leaves their users with the cognitive dissonance.

Re:A surprising way to lose your files on Windows by DiggyJohnson on Saturday October 01, 2022 @08:04PM (#33051349)
I’ll take the bait: what do people do, then? Let’s say I agree with your point, genuinely: what are they doing instead?
Re:A surprising way to lose your files on Windows by oneplane on Saturday October 01, 2022 @10:33PM (#33052277)
Usually a combination of search, time-based ordering (like: "I did this thing a while ago, let me scroll back 1000 items") and some mental landmarking (tracking some stand-outs in a list to know the relative position of other items). Same thing with pictures/photos, you could have them in albums, or even smart albums with tags etc, but people tend to just have a running list of all pictures in chronological order.

Most systems have or used to have tagging functionality as well, but apparently that wasn't used all that much either for information classification and organisation.

Granted, I can't read minds and I don't know what everyone everywhere does, but I do see large scale changes in employee instructions for new hires, university hires and even in cross-org/education projects. For most young/new people, their phone was their first 'computer' and the 'default' environment, and a desktop is the anomaly. People looking up how to do things on ticktock is not a funny meme, it's reality and seriously tainting the knowledge of junior hires on the lower end jobs (like entry level service desk backoffice). Knowing where to find authoritative information, how to verify it, and how to use that as a reference to validate and find other information seems to be a foreign concept to some as well. Even something like a somewhat specific google search or wikipedia article and the references it can supply are not as normal as one might think, and the gap is getting bigger, not smaller.

Re:A surprising way to lose your files on Windows by freels on Saturday October 01, 2022 @08:26PM (#33051489)
They don’t bother and just use search: https://futurism.com/the-byte/gen-z-kids-file-systems
Re:A surprising way to lose your files on Windows by llampx on Sunday October 02, 2022 @01:08PM (#33057896)
Wasn't that the point of Google Desktop? Irony is now that when speaking of Google OS search: I can't just search on Android, whereas iOS does it better. I miss that little context-aware Search icon on the menu bar in early Android. You could press it on the home screen to search the whole device, or in an app to search only that app, for eg. Gmail.
Re:A surprising way to lose your files on Windows by PascLeRasc on Sunday October 02, 2022 @03:47PM (#33059491)
The tone of that article is so condescending. "Students act like they have a robot who will fetch them everything they want on demand" Yes! That's the point of a computer. Your machine should do work for you.
Re:A surprising way to lose your files on Windows by oneplane on Sunday October 02, 2022 @05:55PM (#33060689)
That's not actually the point of a computer. The point of computers was to accelerate and augment, not valet. Perhaps one day they will be smart enough to do that, but right now they are still just bicycles for the mind (as per an old computer ad).

Knowing how to store, organise and retrieve information, regardless of what system is used (including computers, file cabinets and archive rooms) is a skill that doesn't just magically appear in your brain, you have to actually observe, trial or classically learn about it to make use of it. It used to be through day-to-day tasks and a growth in responsibilities when growing up that people got that skill semi-automatically, but that is no longer the case.

Re:A surprising way to lose your files on Windows by kelnos on Sunday October 02, 2022 @01:43AM (#33053204)
Nothing, for the most part. Stuff that gets downloaded ends up in Downloads. Stuff that gets created in a local document-creating app ends up in Documents. Photos end up in My Pictures (or not even, as most people just leave them on their phone now and do cloud sync).

When they want to find stuff, they just search for it in the file picker. Or hopefully the file picker is just already in the right place. Often this UX is kinda bad, and it's hard to find things. Sometimes they give up, and either do without, or (if applicable) visit a website to just re-download whatever they can't find. Or they ask a technically-adept friend to help them.

Carefully creating a directory hierarchy and actively picking and choosing where to put things when downloading or saving files is just not a thing most people do.

Re:A surprising way to lose your files on Windows by kylebyproxy on Saturday October 01, 2022 @08:04PM (#33051347)
Yes please. Can I have my touchpad buttons back already?
Re:A surprising way to lose your files on Windows by nikau on Saturday October 01, 2022 @10:25PM (#33052218)
get a thinkpad
Re:A surprising way to lose your files on Windows by ribit on Saturday October 01, 2022 @05:27PM (#33050281)
What does Apple have to do with it? Their folder structure is fairly straightforward and transparent. Windows stuff is definitely the craziest I’ve encountered.
Re:A surprising way to lose your files on Windows by TakeBlaster16 on Saturday October 01, 2022 @04:36PM (#33049877)
> Create a \Quicken directory in the root

Windows has an existing convention for this, like Linux's XDG. Imagine if you looked at your Linux filesystem root and saw /boot, /dev, /usr, /tmp, and /Quicken.

Re:A surprising way to lose your files on Windows by pxx on Saturday October 01, 2022 @07:24PM (#33051122)
I mean, honestly, I would be somewhere between "somewhat miffed" to "laughing out loud" if I saw /Quicken. It would not surprise me in the least to see something like Quicken completely violating standards and/or good taste.

You'd probably see a /Quicken/ as well as a file /Quicken-uninstall as a broken symlink to nowhere.

Re:A surprising way to lose your files on Windows by wellbehaved on Saturday October 01, 2022 @04:05PM (#33049563)
This is what happens when you let non-technical people direct technical people. Really the only kind of person that should manage and direct a technical person is an even wiser technical person.
Re:A surprising way to lose your files on Windows by JJMcJ on Sunday October 02, 2022 @02:09AM (#33053328)
> I really really dislike Windows when it hides paths, for example, "My Pictures". Where the heck is that?

I helped my wife reorganize many hundreds of images. Finding out where they really were located and where they would actually end up was a tremendous chore, and locating them again has continued to be difficult.

Even doing a backup is stressful. Where are the files really located?

Re:A surprising way to lose your files on Windows by rnotaro on Monday October 03, 2022 @10:26AM (#33067975)
Right click on the file, "Properties", look at the "Location" property.
Re:A surprising way to lose your files on Windows by JJMcJ on Monday October 03, 2022 @02:16PM (#33071478)
Yeah, but when there are hundreds or maybe even 1,000 files, splattered across who knows how many directories, it gets tiring.

I suppose I could create some automation tools, and I have thought about that.

Re:A surprising way to lose your files on Windows by TazeTSchnitzel on Saturday October 01, 2022 @06:06PM (#33050570)
One reason for hiding paths is localisation. On modern Windows, the path will always be Pictures but it will be displayed with whatever the local translation is. On older versions (and, maybe, modern Windows on a machine upgraded from old versions?), the path was the localised name!

macOS is the same.

Re:A surprising way to lose your files on Windows by _ZeD_ on Sunday October 02, 2022 @01:21AM (#33053103)
...and it's a mildy dumb idea
Re:A surprising way to lose your files on Windows by system2 on Sunday October 02, 2022 @12:02AM (#33052717)
If you mess with group policy a little you'd know where the files are. Right click then "location" shows the directory. In "This PC" all the links are shortcuts. Profile issues are very common, that's why companies keep them in network locations (roaming, desktop, other folders). And for the network location, daily backups (or hourly depending on the setting) then roll version backup for disasters.

Also, don't use 14 years old EOL systems.

Re:A surprising way to lose your files on Windows by Zardoz84 on Sunday October 02, 2022 @03:51AM (#33053872)
In his defense, windows 10/11 it's a crap
Re:A surprising way to lose your files on Windows by imran0 on Sunday October 02, 2022 @02:31PM (#33058794)
While 10/11 are inexcusably bloated mess, things like random BSOD or file corruption are much rarer.
Re:A surprising way to lose your files on Windows by giantdude on Tuesday October 04, 2022 @09:54AM (#33080401)
Apple may have started this. Back in the day Ipods would ingest mp3 files and hide them with hashed names in weird folders to make sure you can't give a copy to a neighbor. Android is even worse: they create absurd views of the file system with entirely made-up structure... Well, Apple too, but I've been boycotting Apple since the 90s.
Re:A surprising way to lose your files on Windows by SCLeo on Saturday October 01, 2022 @05:40PM (#33050393)
Same can be said about linux. where exactly is "~"? And which hard drive is /etc currently on? Sure, if you have setup the system yourself or know how to use linux commands, you can figure it out with ease, but so does on Windows (Right click -> properties).
Re:A surprising way to lose your files on Windows by kuratkull on Saturday October 01, 2022 @06:50PM (#33050913)
I use both operating systems. I never have questions about my locations in Linux, but I constantly wonder about the abstractions Windows throws at me.
Re:A surprising way to lose your files on Windows by brokenmachine on Wednesday October 05, 2022 @02:00AM (#33091828)
I've been using Linux for years and still don't know the difference between /etc and /var.
Re:A surprising way to lose your files on Windows by d110af5ccf on Saturday October 01, 2022 @07:05PM (#33051009)
Not really. May Windows programs actively obfuscate certain paths. On linux, ~ is simply shorthand for your home directory. Note that knowing what particular block device is backing a given path is not at all the same thing as being able to see the path in the first place.

Beyond that, getting a full path is trivial (realpath) and figuring out which block device backs it is also quite straightforward (findmnt).

Re:A surprising way to lose your files on Windows by psd1 on Saturday October 01, 2022 @08:50PM (#33051638)
This is the first time I've heard of realpath, so it may be simple, but it's at least slightly obscure
Re:A surprising way to lose your files on Windows by emodendroket on Saturday October 01, 2022 @07:18PM (#33051092)
What program does that?
Re:A surprising way to lose your files on Windows by d110af5ccf on Saturday October 01, 2022 @07:30PM (#33051150)
Well for starters, the example in the post at the top of this page would presumably not have happened if the paths in Explorer hadn't been obfuscated. So that's one example.

There are also strange constructions that don't actually correspond to a single folder, or at least there were the last time I used Windows which was quite a few years ago now. A place that looked like a photo directory in Explorer, but actually it was a view of multiple directories and I don't know where stuff ended up if you copied into it.

Re:A surprising way to lose your files on Windows by mananaysiempre on Saturday October 01, 2022 @08:17PM (#33051435)
> There are also strange constructions that don't actually correspond to a single folder

The Explorer does not browse the file system, it browses a graph of (COM) objects called the “shell namespace”[1], and has been since Windows 95. Notable examples of non-filesystem nodes include My Computer, Recycle Bin, Control Panel, and Network Neighbourhood; a more obscure one is the All Tasks (“god mode”) collection of all settings applets that exists so that the Start menu can search it[2].

I actually think it’s neat how seamlessly this approach has been integrated—we don’t usually think about it even though we actually encounter it all the time. Microsoft’s attempts to extend this to a full-blown object-oriented (Cairo) or relational (Longhorn) filing system were always so muddled I don’t really get what the actual idea was, though.

[1] https://learn.microsoft.com/windows/win32/shell/namespace-in...

[2] http://brandonlive.com/2010/01/04/the-so-called-god-mode/

Re:A surprising way to lose your files on Windows by nikau on Saturday October 01, 2022 @10:31PM (#33052261)
The advantage is unix systems are virtually always setup correctly - your home drive will be persistent storage on a network share somewhere.

Contrast to windows where your "Documents" folder might be getting backed up via one drive or roaming profile, or it might just be local disk on that machine.

In my experience for a corporate windows environment its best to map a H: drive to a network home drive share and get users to always save in there - if its not mapped it means you are probably on misconfigured host.

Re:A surprising way to lose your files on Windows by alkonaut on Saturday October 01, 2022 @06:08PM (#33050580)
The only good way to handle user data like photos is the way iOS does it. Strictly one place for images. If there is a path then the user doesn’t see it because they don’t need to see it. The storage and directory structure is an implementation detail.

The second best is a fully manual directory structure with no “surface” added. But this is not nearly as good for the average user.

By far the worst one is what you get when you (correctly) like Microsoft realize you are in the second category but you’d like to be in the first. The end result is an annoying middle ground that has plagued windows for a long time now. They probably (incorrectly) assumed they could get to the iOS situation eventually.

Separating the application and its binaries isn’t a bad idea though. I don’t want to back up applications, just their data, for example. And I want to be able to have different permissions for the app binaries and elsewhere. So programs\Quicken and data\Quicken would be better than the other way around. And this isn’t far from what windows does. If I create an app I put the user data in %appdata%\myprogram. The folder is annoyingly hard to find though but that’s more an explorer UX issue than a problem with how the files are stored.

Re:A surprising way to lose your files on Windows by Wowfunhappy on Saturday October 01, 2022 @06:32PM (#33050777)
I have a folder on my computer called "Graduate School". Inside are subfolders for each of the classes I'm taking. Inside these and further subfolders are files such as:

• Videos I need to watch for class.

• PDFs I need to read for class.

• Word documents I am writing for class.

• Photos, videos, and audio recordings I will use to write papers for class.

The "iOS model" would have me segment all of this data by file type. The PDF from New York State on K-12 educational standards would be next to my 2021 tax returns. My paper on single-sex schools would be next to the technical documentation for a web app I'm developing. This would be terrible.

Files need to be organized by purpose, not file type. I know what my files are for. My computer does not.

This is also a major reason why I hate my iPhone.

Re:A surprising way to lose your files on Windows by alistairSH on Saturday October 01, 2022 @07:20PM (#33051106)
What “iOS model” are you thinking about? iOS introduced a slightly more normal file structure (from a user perspective) with the Files app. I can create folders with My Documents similar to how I might on a Mac or PC. It’s still a bit odd, as some appears synced to iCloud by default (iCloud Drive) while some is not (On my iDevice). And obv limited by single-user constraints.

All that said, I do agree with the general premise that files should be organized in reasonable places by default and users should be able to override that should they see the need.

Re:A surprising way to lose your files on Windows by Wowfunhappy on Saturday October 01, 2022 @07:37PM (#33051185)
The Files app is a huge improvement, but it doesn't integrate into other apps very well. For example, if I play an audio recording, playback happens within the files app, so I can't browse through other documents at the same time. I could import the audio file into e.g. VLC, but now I'm copying it into a new location.

Contrast this with traditional OS X. I can open a file in any app, but the file continues to live in Finder. In a way, you could say that the Mac puts files first in the way that iOS puts apps first. An app is just a tool, and could be used for anything: I write papers for school and documentation for work and poetry for pleasure. A file, on the other hand, has a distinct purpose.

Re:A surprising way to lose your files on Windows by alistairSH on Saturday October 01, 2022 @09:12PM (#33051755)
Totally agree on that point - the relationship between apps and files is really odd in iOS for anybody who grew up on PCs/Macs. I’ve mostly given up trying to manage files and just trust (Hope? Wish?) iOS to do the right thing. And it usually does, but I’m not creating content or doing work, just consuming.
Re:A surprising way to lose your files on Windows by WalterBright on Saturday October 01, 2022 @06:37PM (#33050810)
Yeah, I too organize my files by subject, not file type. The latter is crazy.
Re:A surprising way to lose your files on Windows by Eisenstein on Saturday October 01, 2022 @07:24PM (#33051121)
Why not just use metadata? Directories are a workaround for the way that filesystems were designed. Using keywords is much more logical, and indexing file metadata can allow that.
Re:A surprising way to lose your files on Windows by Wowfunhappy on Saturday October 01, 2022 @07:53PM (#33051288)
To be clear, I'm not necessarily arguing for directories or against metadata. I just think that grouping by file type is mostly bad.
Re:A surprising way to lose your files on Windows by alkonaut on Saturday October 01, 2022 @07:08PM (#33051026)
On a phone, just 1 category for images (plus of course indexing by geography, time) is more than enough. For a PC where I create things I’d probably want more options too. But handling files and directories I do because I have to not because I want to. To begin with a directory structure just allows organizing by one category (e.g can’t have documents both organized topic then year and year then topic.).

I’m not saying the final solution to data organization is just “all Images in one directory”. The solution is one where you don’t worry about directories and still easily find and group the data you need.

Windows had grand plans for this that were scrapped. Understandably, but also sadly.

Re:A surprising way to lose your files on Windows by Wowfunhappy on Saturday October 01, 2022 @07:22PM (#33051116)
> But handling files and directories I do because I have to not because I want to.

Oh, I absolutely agree! But as I said, I know what my files are for, and my computer does not. So until we get some incredible AI that not only understands the context of every file but can also use that context to make perfect organizational decisions, I expect to be the one responsible for grouping my data.

To be clear, I don't think directory hierarchies are necessarily the be-all end-all of digital organization. For example, I like the idea of organizing based on tags, because a lot of documents rightly belong in more than one category. However, I expect I'll need to be the one who sets the tags.

iOS's solution does work better on mobile than on desktop (and iPad), although I do run into problems on my iPhone.

Re:A surprising way to lose your files on Windows by ipaddr on Saturday October 01, 2022 @10:25PM (#33052217)
What a restricted world where the os caters to the poorly educated user. Folders should be able to handle all file types.
Re:A surprising way to lose your files on Windows by alkonaut on Monday October 03, 2022 @04:28AM (#33064861)
Tags are just a superior way of accessing anything. The issue is that the shift from a directory structure based world to a tags based world isn't easy. I'm not saying "Desktop OSes should stop using paths", I'm saying "In the future, hopefully we won't need paths (as much)".

And yes, of course no one should be stopped from having one area where they have a word document, six images and a text file. OF COURSE. But whether that's a directory or not isn't what's interesting. The interesting part is that I can group them together logically, find and use them easily etc.

Re:A surprising way to lose your files on Windows by nyanpasu64 on Saturday October 01, 2022 @09:34PM (#33051885)
How does Apple handle app-specific file formats like game levels, nonstandard file formats like .spc and .psf and SQLite databases the OS can't be expected to know the existence of, and the separation between local, synced, and cloud-only files?