Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ever since the iphone apple has been trying to make you believe files aren't a thing.


The file system is the ultimate API, and it gives the user an enormous amount of control to take data, copy it, back it up, transform it, encrypt it, send it places, restore it, etc.

Apple likes to have far more control than that.


You realize that you can copy files gl and from other providers like Google Drive, Dropbox etc from the files app on iOS just like you do on any GUI and you can also copy files from the iPhone by just plugging in a USB C mass storage device?


Never owned an iPhone, but I have familiarity. Here's Apple's instructions for "exporting" your photos from iPhone. Note: it does not say plug the iphone in and drag the photos from the "Photo" folder to your external device. It says this:

> Export photos and videos to an external storage device

> You can export photos and videos you took on your iPhone directly to an external drive, a memory card, or other storage device.

> Note: For photos and videos that have been edited, the unmodified original version will be exported.

> Connect your iPhone to the storage device using the Lightning or USB-C connector, or connect the device directly to your iPhone.

> Go to the Photos app on your iPhone.

> Select the photos and videos you want to export.

> Tap the Share button, then tap Export Unmodified Original.

> Tap your storage device (below Locations), then tap Save.

Note that you have to request permission from Apple's app before you can actually export the data. The filesystem doesn't gate you this way.

https://support.apple.com/guide/iphone/import-and-export-pho...

So here's a question: can you export modified versions of photos that have been edited? Well, that seems to be tough. Searching around, you find wild discussions like this: https://discussions.apple.com/thread/8567773?sortBy=rank

This is the kind of shenanigans I'm referring to. No access to just copy data from the app. Android has a similar issue with apps, but at least the filesystem is a first class citizen on Android. That is, I can simply copy any photos directly off my phone like it's USB mass storage.


It’s asking for permission on the device because there are real threats that you plug up your phone to an untrusted device thinking it is just a dumb charging port and it can extricate your data.

As far as why you can’t export your edited photos, is that iOS doesn’t actually exit your photos. It applies the edits from what I can tell as a separate “filter” that’s stored as metadata so you can undo your edits. How do you export your edits in a cross platform way? Would you rather have destructive edits? Maybe you would. But either way there are tradeoffs.

And files have a different data store than a photo.

You just plug any mass storage device into your iOS device and it shows up in the Files app and you copy and paste files like you would in the Finder or Explorer. In fact, in the Files app, if you have a third party storage service like Google Drive or Dropbox, they also show up as location in Files along with iCloud. Meaning you can copy directly from Google Drive to your mass storage device.

You can’t do that with any random “file explorer” on Android - ie a consolidated location for local storage, cloud storage from 3rd party providers, network connections, and mass storage.


Yeah, I get it. I don't want any of that, I just want a filesystem.

I'll take care of cloud storage with SyncThing (or whatever) -- I'm the kind of guy that values being able to choose the parts. I don't buy "cold medicine", I buy ibuprofen, diphenhydramine, pseudoephedrine or whatever else I decide, and I'll dose each based on my symptoms. Because that's just better than some prepackaged thing. And I do the exact same thing with computing. Works great. But Apple fights.

The whole world of mobile computing is actively fighting giving the customers the ability to compose their tools, which strips away user agency, and creates all these issues with "big tech" being monopolies and locking users in. This is at the root of what the DMA is about, I think.


Yes I’m sure “you can already build such a system yourself quite trivially by getting an FTP account, mounting it locally with curlftpfs, and then using SVN or CVS on the mounted filesystem. From Windows or Mac, this FTP account could be accessed through built-in software.”

https://news.ycombinator.com/item?id=9224

With iCloud, if I drop my phone in the ocean by mistake, I can walk into the Apple Store, buy another phone, log in and my new phone looks and acts like my old phone with all of the bookmarks, icons, app data, settings etc being restored.


I use SyncThing. It works well.


Does SyncThing automatically back up everything? Settings, in app data, icon positions, bookmarks, messages, and browsing history?

If you through your phone in the ocean and gestured on another one, would your new phone look just like your old one?

And it’s been discontinued for Android….

https://forum.syncthing.net/t/discontinuing-syncthing-androi...


We're having different conversations.


How so? I want my backups to actually backup everything. No one cares about backups - they care about restores as the old saying goes.

If I can’t in fact throw my phone in the ocean when I’m away from my computer, go buy another phone, log in and everything is automatically restored, it’s a poor solution


Because Apple realised that phone users are interested in photos, videos, contacts, documents, appointments etc. not files


Despite others thinking you’re crazy, I think you are right. I remember the start of the smartphone era where many of my relatives switched to iPhone because "you know where the pictures are going and where to find them". The worst offender was my dad that had a Samsung phone running windows phone 6 (with an actual start menu) where you had to dig through folders to find jpeg files.


Desktop OSs are the worst for mixing random system files with the users own documents. Theres a better balance now where the “Files” app has your documents, downloaded stuff and similar, while system and app data is hidden.


Isn't that pretty much just Windows? That basically never occurs on Linux and it's not common on macOS, either. All the garbage I have on my work computer (a Mac) in ~/Documents is stuff that OneDrive synced over from when I used to have a Windows computer there. (If I could turn the OneDrive feature that takes over ~/Documents and ~/Downloads, I would.)


Linux software is notorious for spewing crap all over the user's home directory. Delete everything inside your /home/name and see how well the system still works. On iOS/iPadOS nothing happens other than not having the documents you saved in there.

I'm not sure there even is a good place where programs can store their internal system files without requiring root other than mixed in with the user Home.


> I'm not sure there even is a good place where programs can store their internal system files without requiring root other than mixed in with the user Home.

/var/run/user/<uid>/ ?

Or what do you mean?


/run isn't for¹ application data, and it's also not persistent (it's often on a tmpfs).

But sure, an OS could in theory use something like /var/cache/<uid> instead of ~/.local/cache. I'm not aware of anything that does, though.

----

https://specifications.freedesktop.org/fhs/latest/run.html


You are right. I see a lot of applications putting stuff into /var/run/user/<uid>/, but this is mostly ephemeral runtime data, notably sockets. And of course systemd has service units there, which don't seem temporary at all, but it's systemd, so whatever... .

The correct way for what I intend would be /var/lib/user/<uid>/, but yes this does not exist on my host. But I honestly don't see why non-ephemeral per user data shouldn't be put into /home. It is definitely user-specific, under the control of the user, instead of the OS, and when you want to move your user to another host (or sync it), you definitely want to include that data as well, so putting it across the OS filesystem sounds kind of dirty to me.


I think the systemd units in /run are indeed ephemeral, and indicate units that are active. If they have permanent counterparts (some units, like transient timer units, don't have them), you'll find them under /etc/systemd or /lib/systemd for system units and ~/.local/share/systemd or ~/.config/systemd for user units.

> But I honestly don't see why non-ephemeral per user data shouldn't be put into /home

I think I agree— as long as the conventions are clear, I think it's reasonable to have some hidden dirs under $HOME set aside for configuration and cache and so on.

Maybe there's value in exposing a single directory as the root of a sandbox for user files, so users have to go farther out of their way to screw things up, especially depending on your audience. Maybe a decade from now Linux desktops will have something like this, because most apps will run sandboxed in Flatpak, unable to write to the root of $HOME. (Idrk how that's organized, though— maybe apps are just allowed to edit "their" dotfiles without modifying their location.)

But I'm not sure that obscuring configuration data's place in the filesystem in that way is really desirable or necessary. I doubt most users inspect or think about hidden directories on Unix-likes unless they're looking for them anyway.


> so users have to go farther out of their way to screw things up, especially depending on your audience.

I think on most desktop distros users only have writing access to their home directory and maybe /tmp.


The average user does not see things like app config files, cache data, etc as their own files. The current /home has so much absolute junk that it's easy to not know where your stuff is. "Real" files to a normal user are .docx, photos, downloaded files, etc. Not auto generated configs.

There ideally should be some separation between your actual documents and system utility stuff. I guess this has mostly happen already with real files sitting in cloud storage. With local storage just being replacable.


> The average user does not see things like app config files, cache data, etc as their own files.

All the more reason to put this stuff into the user directory, so that it is automatically included in backups and syncs done by the unaware user.

> The current /home has so much absolute junk that it's easy to not know where your stuff is.

Not my experience. Application data of application XYZ is either in ~/.xyz or in ~/.{config,local,cache}/xyz, depending on whether the application is FHS compliant or not.


> .docx

goes in ~/Documents

> photos

go in ~/Pictures

> downloads

go in ~/Downloads

> Not auto generated configs.

No Linux applications ever put configuration data in any of the aforementioned locations...

> it's easy to not know where your stuff is.

?????


Yes and no. Some older conventions for dotfiles are a bit messy in that they're not necessarily contained under top-level directories like ~/.config or ~/.local, but the hijacking of non-hidden directories for contents unrelated to their purposes, like using ~/Documents for game saves, is basically unheard of (except for some ports of Windows games that retain this bad habit).

> On iOS/iPadOS nothing happens other than not having the documents you saved in there.

That is, frankly, a ridiculous test for the issue under discussion. Even if everything was stored under a top-level subdirectory set aside for application data in a perfectly orderly way, nuking $HOME would still break things.

Besides all that, hidden directories in the root of ~ are conventional¹ places to store application config files and so on, and can't be mistaken for conventional places to store documents. On most Linux-based operating systems, the conventional place to store documents is (obviously) ~/Documents, which is created ahead of time for all users. That folder doesn't generally end up polluted with things that aren't documents.

> On iOS/iPadOS nothing happens other than not having the documents you saved in there.

If you delete /var/mobile or any of the things that $HOME points to in the context of some app, you'll definitely lose app settings.

The app sandboxing on iOS does something nice by sort of forcing app configuration data to live within conventional directories, but none of that is captured in the "what if you delete ~" test. (The fact that $HOME isn't really directly exposed to the user sort of does; the local files you're comparing to $HOME on Linux are actually $HOME/Media on iOS.)

----

1: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s08.htm...

2: https://www.theiphonewiki.com/wiki//private/var/mobile


Weird story...people open up their gallery app and there are the pictures.

Never have been different. What did your relatives doing?


That's the thing, this was the very beginning of the smartphone era, 2007-2009. UX was not fleshed out yet. Conventions neither. Simple gallery apps were an Apple and iPhone thing.

There were cases where phones were not consistent. Pictures from the camera, or saved from MMS, or saved from the Web, or screenshots, did not all go in the same place. Just like you would have on a desktop :) I don't remember that well the pre-2010 android, but it had some issues too.

Even to this day, WhatsApp saves photos to the gallery, but in its own album. At least on iOS those are part of the regular gallery so you'll always find them (an album is just a "tag" on the photo). Android has a dedicated album too, but the picture set is distinct from the main picture gallery. So are screenshots. That's more control and power, but utterly confusing for older people. Younger relatives are fine, older fail to navigate around this and find "the picture your auntie sent to me through whatsapp". Yup, it's there, but not in the main camera roll.

This is what I mean by "you know where the pictures are going".

PS: Apple botched the UX of the gallery app in the last two iOS versions so much that even I, a young tech-inclined person, loses my way around. So do my relatives. They're sorta catching up /s


A file system and its files are a very simple abstraction that lets us organize these exact things.

I understand that some people get confused and overwhelmed by a directory structure, but I see that as an education problem, not a UX problem. I was taught all of this in elementary and middle school computer classes in the '90s and early '00s. Having this knowledge early on made me less afraid of my computer, made it feel less like a magical black box, and gave me the confidence to learn more complex topics on my own.

Computers become way more capable when the people using them understand fundamentals like directory structures and command line usage. I don't think either of these things are as difficult to learn as reading, writing, and arithmetic (especially if you already have a base level education in those three things).

If more "everyday people" just had a little bit more knowledge about these things, they would be able to do way more with their computers with less of a reliance on proprietary solutions that funnel them down whatever path makes someone else the most money.


its a UX probpem insofar as service providers will decide that since they give you a view over the file system, thats enough.

i want file system access, but as a power tool. the 50 clicks through different folders is irrelevant to my most common 5 patterns of use. those should be a single click, or 0 clicks


I tried out zoxide and fzf ctrl-r history on linux (zsh) recently. Game changers.

Where is zoxide for my phone? Why is there so little innovation?

Trillion dollar companies can't come up with a single new thing. Or rather, won't come up with a single new thing because they're just useless rent seekers.

It's absolutely pathetic.


But what they own is files. Most users aren't interested in mutual funds, but that doesn't mean they don't want them in their retirement portfolio.


One reason I'll never own an apple device, and prefer buying more expensive more open competition. Its just a red line - I own the device by law, if you bend backwards to prevent me from using it via ways that it supports by principle, your product doesn't exist for me.


You are not Apple's target audience, and there is nothing wrong with that.


The problem is that because fleecing dummies is so profitable, it encourages the same scummy behavior by other companies.


Calling an extremely broad user segment dummies is unreasonably condescending.


Did I say they were all dummies?

You said there's nothing wrong with how Apple exploits their target market.

Scummy behavior being normalized is what's wrong with it.


And files…


... This is a joke... Right?


"Dad, download the PDF and then email it to me."

"The file disappeared. I can't find it."

"Look in the download folder."

"How do I get to that?"


iOS isn't just a phone OS.


It is. The other OSes have different names.


Only so they could pretend that iPhones and iPadas are separate platforms under DMA


I generally agree that iOS/iPadOS aren't two different operating systems, but "iPadOS" predates the DMA.


Barely... the iPadOS brand was introduced in 2019, the European Commission proposed the DMA in 2020, and even prior to this there were obvious noises being made in Europe with regards to future regulation. Maybe its coincidence, but the timing still lines up for this being a response to the threat of EU changes.


So Apple preemptively split the names because they knew exactly how the unreleased DMA was going to affect them?


Law drafting in Europe doesn't happen behind closed doors and typically even has consultations with the companies affected by it. It wasn't unreleased only because it wasn't signed yet.


Steve Jobs, 2007: "iPhone runs OS X"


And it indeed was running a fork of OSX… which was later renamed.


lots of things have happened since then.


Im not sure if Android has caught up but the iOS file explorer app is excellent.


Saying "I'm not sure if Android has caught up" when Android is decades ahead of Apple in that regard is some kind of... something.


Certainly wasn’t ahead with the stock file manager that came with my last Android phone.


What about after you spent the two seconds to install a different file manager?


Ghost Commander was better but I think I still prefer the iOS Files app.


That also could have been from the phone manufacturer OR from the carrier.

This is why I've avoided non Pixel phones since the Pixel5 came out. None of that 2 or 3 apps for the same thing so everybody can get their ad cut payout.


Your Samsung or whatever manufacturer bloated trash ≠ Android.


I used the AOSP app I think? I’d usually agree with you but in this case I really wanted some more bloat because that one was dire :)


Still no smb/webdav/sftp somehow...



Whenever I'm forced to help with iPhones, I'm baffled how hard everything is. And I had my own iPhones previously. Download a file, unpack it and open in an app is an exercise is frustration, and that's just hoping that I will find the file due it being newest. Working with directories and old files properly, like on Android, I'm not sure if its even possible on iOS. And all that with a crappy keyboard with hidden numbers and special symbols, making searching even harder.


I'm pretty sure that iOS only has a file explorer app because Android supported it.

There was almost a whole decade there where Apple pretended that the feature just didn't need to exist.


To be fair, Android lacked a stock file browser for much of its existence.


The difference is that iOS still doesn't show you the files on your device. It only shows you files in a small area.


I love Android but Android does that too. Apps have their internal storage area which you can't access unfortunately (not without root anyway). Nor system files.


There's a difference between "can't see 'special' folders" & "can't access anything but the app-specific storage". iOS loves the latter, while Android lets you organize files mostly normally even if doing highly stupid/discouraging things for power users & some app developers making questionable non-default choices.


While I bet there’s some technicality I’ll get gotcha’d on, iOS apps do the exact same nowadays.


iOS apps didn't, for the majority of the iPhone's lifespan. I explained this "technicality" upthread:

> There was almost a whole decade there where Apple pretended that the feature just didn't need to exist.


The history lesson is appreciated but how does this relate to the current state of the stock file explorer that ships with the OS? I’m using my phone now and not ten years ago.

edit: oh, I think I get it. My original post wasn't intended to be read "iOS invented the file explorer, has Android also a file explorer app" (which would be silly, of course) but "when Files app released, the AOSP file explorer that commonly ships as the default was lacking, has this improved (caught up to Files app)"


Maybe include the word "default file manager" next time :)).

Android is possibility/ (overdose of) options Apple is polished (and late).

Different strokes for different folks


When I had an iPhone (a few months ago), there was no way for apps to see files in the filesystem. I wanted to play some music and I had to copy it over to each of the music player apps separately. Is that not the case any more?


That’s entirely up to the app developer. Of course apps can see files if they’re developed to do that.


VLC for iOS uses the filesystem. You can add files with Finder (newer macOS), iTunes (older macOS), or the Files app on the phone.

You are correct that each app can only see a specific part of the filesystem, unless the apps are by the same developer and part of an App Group.


Am I supposed to be mad about them not supporting a feature during a time when I didn’t use iOS or is this somehow supposed to impact my current day use of Files app?


"Im not sure if Android has caught up but the iOS file explorer app is excellent." ~ you several posts up.


Remember folks, the iphone was released in 2007, and the files app in 2017. Cut & paste? Apple didn't give ios a clipboard until 2021.


> Apple didn't give ios a clipboard until 2021.

Apple added copy/paste in iOS 3.0 in 2009


Was the list time you had an Android pre-2017?

It was around that time it (Files app) got a major refresh.


Try connecting to a WebDAV server on File. It's possible but it's shitty. And try using Syncthing on iOS to keep your files synced across devices without having them uploaded to servers you don't control.

Also, on Android, you can choose any file explorer. You're stuck with Files and it sucks (but it looks nice).


I don’t have one of those! I do have an SMB share mounted that I’m currently playing music from, though, and it’s working perfectly fine.


The difference is that the Files app works with third party cloud storage providers.


Next time you give Android a try, you might like Solid Explorer https://play.google.com/store/apps/details?id=pl.solidexplor...


The one major issue is that it doesn’t work inside other apps. If I save something in Word, it pops up the standard File dialog and every storage provider available for my iOS device - Dropbox, OneDrive, Google Drive, iCloud Drive, local storage, network drives, and locally connected mass storage devices are available.


They did a pretty hard reverse on that. There's now a full Files app with integration with other apps (cloud storage, asset managers like Adobe, terminals for SSH transfers, etc). Unfortunately a lot of apps have never caught up and will only save stuff in the pre-Files sandboxes and not the shared local or cloud containers.


Which apps?


Yes - it’s not like they have had a literal app called “Files” since 2017 and if you install apps like Dropbox, OneDrive, Google Drive etc they all show up in the Files app and are choosable destinations from any app that uses the Files dialog…


They have rolled it back over the years. Theres a full files app now, USBs can be easily plugged in to the iPhone, every app that allows exporting allows saving to the files section, etc.


It goes farther than that. It dates back to at least iPod and iTunes library synchronizing.


Ios has an app called "Files".

Now "bluetooth" I could buy (and I do not miss at all).


What's a computer?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: