Chapter 11. FileOperations

Table of Contents
Introduction
Methods
 

Yesterday I was a dog. Today I'm a dog. Tomorrow I'll probably still be a dog. Sigh! There's so little hope for advancement

 
-- Snoopy  

Introduction

FileOperations is a very special class that ease you the heavy task of system file handling.

With this class, you can perform the most common file operations tasks with just a single call very close to the standard shell's commands.

Main features are:

To create a FileOperations instance, simply call afc_fileops_new() and delete it when you have finished using afc_fileops_delete() Since the task of creating and disposing this class is somewhat demaninding, please consider the opportunity of keeping an already allocated instance around if you think you could need it later.

Once you have a FileOperations instance working, you can do a lot of things. For example you can:

There are some things you can configure, like whether to return or not an error code in case an afc_fileops_chmod() fails: see afc_fileops_set_tags() and afc_fileops_set_tag() for more info.