[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_0862.png (25 KB, 1340x760)
25 KB
25 KB PNG
I am working on a phone app that has a kitsch, fake-filesystem-like interface for storing information. However, I have included the ability to copy folders, and a user determined to softlock themselves could theoretically 1. duplicate a folder 2. move both duplicates into a third folder 3. go back to step 1 until the app's fake-filesystem (stored in an sqlite database) stalls out, softlocks, and breaks.

How do I give the user relative freedom to copy folders without letting them do dumb things like deliberately softlocking themselves/filling the fake-filesystem with crap?

Plz gib ideas. Thanks.
>>
>>1477343
Why not use real folders under the hood instead of a database?
>>
>>1477399
A good suggestion actually, and
probably what I *should* do.

Since no one replied to this thread
for about a day, I ended up disabling
folder copying at 1GB, with a popup explaining that it's to prevent the user from softlocking themselves easily (fortunately most people will never encounter this, and those who do will likely be trying to softlock deliberately).

So, a user *could* still break it by copying something like 20,000 files but it'd be
really hard and take 20 hours or so.

If I ever update the app to store more
complex/large stuff I'll probably go with this. But thankfully the file sizes of the db files are really small so it's not an issue.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.