Menu

fileoff option doesn't seem to be working (Windows)

stone1343
2015-08-24
2015-08-25
  • stone1343

    stone1343 - 2015-08-24

    Hi, I've tried this with SFK 1.7.5 and 1.7.5 Revision 2 (Windows, using the executable available right from the StahlWorks site.

    I have a backups folder, I'm trying to delete all but the 5 most recent backup files. It looks like

    sfk list -old -fileoff=5

    should do what I want, but fileoff (and fileoffset) seem to have no effect at all.

    Am I doing something wrong or is it SFK?

    Thanks for a great utility

     
  • stone1343

    stone1343 - 2015-08-24

    I actually just found something that makes it do what I want, if I also use -maxfiles, then -fileoffset has the desired effect.

    That seems to answer my question,
    Jeff

     
  • stone1343

    stone1343 - 2015-08-24

    Sorry, that's not completely true either. It seems that when -fileoff and -maxfiles are specified, it implicitly adds -late too. So I end up deleting the newest file...

     
  • stahlworks

    stahlworks - 2015-08-25

    the -fileoff option is applied before files are sorted by date, making it useless in this context. furthermore it is unclear what -fileoff=5 should mean: will it skip the 5 oldest or newest files?
    if you download the latest pre-relase for windows from

    http://stahlworks.com/dev/pre/
    

    you will now find a new option -skiplate=n which works as it says, it skips the most recent n files, keeping the older ones selected.

     

Log in to post a comment.