SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict crabby80's Avatar
    Join Date
    May 2007
    Posts
    387
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    USB file permissions

    Hi guys

    I'm developing an application that runs from a USB stick, is there any way to stop users from deleting individual files or folder?

    I can't make the drive readonly as I need them to be able to save and delete content.

    Any help would be much appreciated

    Crabby

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Well I'm guessing the USB drive uses FAT, which has zero permissions.
    But I doubt you really need to stop users from deleting anything.
    Just tell them it won't work if they do, or recreate them or something.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •