2011-02-18 13:58:08 +00:00
|
|
|
/*
|
2002-10-12 11:37:38 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2008-01-07 19:13:47 +00:00
|
|
|
* of the License, or (at your option) any later version.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
* All rights reserved.
|
2011-02-18 13:58:08 +00:00
|
|
|
*/
|
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
* \ingroup bli
|
|
|
|
* \brief File and directory operations.
|
2002-10-12 11:37:38 +00:00
|
|
|
* */
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#ifndef __BLI_FILEOPS_H__
|
|
|
|
#define __BLI_FILEOPS_H__
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2012-03-20 02:17:37 +00:00
|
|
|
#include <stdio.h>
|
2013-03-05 03:44:47 +00:00
|
|
|
#include <sys/stat.h>
|
2018-02-01 07:58:06 -07:00
|
|
|
#include <stdint.h>
|
2012-03-20 02:17:37 +00:00
|
|
|
|
2010-10-06 16:23:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2011-10-22 15:35:49 +00:00
|
|
|
/* for size_t (needed on windows) */
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
#include <limits.h> /* for PATH_MAX */
|
2013-08-20 08:33:04 +00:00
|
|
|
|
2015-02-18 07:26:10 +11:00
|
|
|
#include "BLI_compiler_attrs.h"
|
|
|
|
|
2013-08-20 08:33:04 +00:00
|
|
|
#ifndef PATH_MAX
|
|
|
|
# define PATH_MAX 4096
|
|
|
|
#endif
|
|
|
|
|
2011-10-22 15:35:49 +00:00
|
|
|
/* Common */
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
int BLI_exists(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
int BLI_copy(const char *path, const char *to) ATTR_NONNULL();
|
|
|
|
int BLI_rename(const char *from, const char *to) ATTR_NONNULL();
|
|
|
|
int BLI_delete(const char *path, bool dir, bool recursive) ATTR_NONNULL();
|
2019-10-10 10:53:13 +02:00
|
|
|
int BLI_delete_soft(const char *path, const char **error_message) ATTR_NONNULL();
|
2019-04-17 06:17:24 +02:00
|
|
|
#if 0 /* Unused */
|
2019-04-17 08:24:14 +02:00
|
|
|
int BLI_move(const char *path, const char *to) ATTR_NONNULL();
|
|
|
|
int BLI_create_symlink(const char *path, const char *to) ATTR_NONNULL();
|
2015-08-24 22:09:01 +02:00
|
|
|
#endif
|
2014-05-28 22:50:40 +06:00
|
|
|
|
2014-06-23 10:07:06 +09:00
|
|
|
/* keep in sync with the definition of struct direntry in BLI_fileops_types.h */
|
2014-05-28 22:50:40 +06:00
|
|
|
#ifdef WIN32
|
2017-05-27 15:34:55 -04:00
|
|
|
# if defined(_MSC_VER)
|
2014-05-28 22:50:40 +06:00
|
|
|
typedef struct _stat64 BLI_stat_t;
|
|
|
|
# else
|
2014-06-23 10:07:06 +09:00
|
|
|
typedef struct _stat BLI_stat_t;
|
|
|
|
# endif
|
2014-05-28 22:50:40 +06:00
|
|
|
#else
|
|
|
|
typedef struct stat BLI_stat_t;
|
|
|
|
#endif
|
|
|
|
|
2019-11-06 17:16:46 +01:00
|
|
|
int BLI_fstat(int fd, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2019-04-17 06:17:24 +02:00
|
|
|
int BLI_stat(const char *path, BLI_stat_t *buffer) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2014-06-23 10:07:06 +09:00
|
|
|
#ifdef WIN32
|
2019-04-17 06:17:24 +02:00
|
|
|
int BLI_wstat(const wchar_t *path, BLI_stat_t *buffer);
|
2014-06-23 10:07:06 +09:00
|
|
|
#endif
|
2011-10-22 15:35:49 +00:00
|
|
|
|
2020-02-21 08:18:29 -08:00
|
|
|
typedef enum eFileAttributes {
|
|
|
|
FILE_ATTR_READONLY = 1 << 0, /* Read-only or Immutable. */
|
|
|
|
FILE_ATTR_HIDDEN = 1 << 1, /* Hidden or invisible. */
|
|
|
|
FILE_ATTR_SYSTEM = 1 << 2, /* Used by the Operating System. */
|
|
|
|
FILE_ATTR_ARCHIVE = 1 << 3, /* Marked as archived. */
|
|
|
|
FILE_ATTR_COMPRESSED = 1 << 4, /* Compressed. */
|
|
|
|
FILE_ATTR_ENCRYPTED = 1 << 5, /* Encrypted. */
|
|
|
|
FILE_ATTR_RESTRICTED = 1 << 6, /* Protected by OS. */
|
|
|
|
FILE_ATTR_TEMPORARY = 1 << 7, /* Used for temporary storage. */
|
|
|
|
FILE_ATTR_SPARSE_FILE = 1 << 8, /* Sparse File. */
|
|
|
|
FILE_ATTR_OFFLINE = 1 << 9, /* Data is not immediately available. */
|
|
|
|
FILE_ATTR_ALIAS = 1 << 10, /* Mac Alias or Windows Lnk. File-based redirection. */
|
|
|
|
FILE_ATTR_REPARSE_POINT = 1 << 11, /* File has associated reparse point. */
|
|
|
|
FILE_ATTR_SYMLINK = 1 << 12, /* Reference to another file. */
|
|
|
|
FILE_ATTR_JUNCTION_POINT = 1 << 13, /* Folder Symlink. */
|
|
|
|
FILE_ATTR_MOUNT_POINT = 1 << 14, /* Volume mounted as a folder. */
|
|
|
|
FILE_ATTR_HARDLINK = 1 << 15, /* Duplicated directory entry. */
|
|
|
|
} eFileAttributes;
|
|
|
|
|
|
|
|
#define FILE_ATTR_ANY_LINK \
|
|
|
|
(FILE_ATTR_ALIAS | FILE_ATTR_REPARSE_POINT | FILE_ATTR_SYMLINK | FILE_ATTR_JUNCTION_POINT | \
|
|
|
|
FILE_ATTR_MOUNT_POINT | FILE_ATTR_HARDLINK)
|
|
|
|
|
2011-10-22 15:35:49 +00:00
|
|
|
/* Directories */
|
|
|
|
|
|
|
|
struct direntry;
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
bool BLI_is_dir(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
bool BLI_is_file(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
bool BLI_dir_create_recursive(const char *dir) ATTR_NONNULL();
|
2015-02-18 07:26:10 +11:00
|
|
|
double BLI_dir_free_space(const char *dir) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2019-04-17 06:17:24 +02:00
|
|
|
char *BLI_current_working_dir(char *dir, const size_t maxlen) ATTR_WARN_UNUSED_RESULT
|
|
|
|
ATTR_NONNULL();
|
2020-02-21 08:18:29 -08:00
|
|
|
eFileAttributes BLI_file_attributes(const char *path);
|
2011-10-22 15:35:49 +00:00
|
|
|
|
2015-01-03 12:27:40 +01:00
|
|
|
/* Filelist */
|
|
|
|
|
Final 'FileBrowser First Stage' merge.
It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser.
From user perspective, it:
* Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender!
* Makes short/long display 'fixed' size (among four choices, like thumbnails mode).
* Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories).
* Consequently, adds datablocks types filtering.
* Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared).
* Generates thumbnails way faster.
From code perspective, it:
* Is ready for asset engine needs (on data structure level in filebrowser's listing).
* Simplifies and makes 'generic' file listing much lighter.
* Separates file listing in three different aspects:
** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct.
** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.).
** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one.
* Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items.
* Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs).
* Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too).
Revision: https://developer.blender.org/D1316
Thanks to Campbell & Sergey for the reviews. :)
2015-08-19 22:41:39 +02:00
|
|
|
unsigned int BLI_filelist_dir_contents(const char *dir, struct direntry **r_filelist);
|
|
|
|
void BLI_filelist_entry_duplicate(struct direntry *dst, const struct direntry *src);
|
2019-04-17 06:17:24 +02:00
|
|
|
void BLI_filelist_duplicate(struct direntry **dest_filelist,
|
|
|
|
struct direntry *const src_filelist,
|
|
|
|
const unsigned int nrentries);
|
Final 'FileBrowser First Stage' merge.
It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser.
From user perspective, it:
* Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender!
* Makes short/long display 'fixed' size (among four choices, like thumbnails mode).
* Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories).
* Consequently, adds datablocks types filtering.
* Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared).
* Generates thumbnails way faster.
From code perspective, it:
* Is ready for asset engine needs (on data structure level in filebrowser's listing).
* Simplifies and makes 'generic' file listing much lighter.
* Separates file listing in three different aspects:
** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct.
** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.).
** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one.
* Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items.
* Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs).
* Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too).
Revision: https://developer.blender.org/D1316
Thanks to Campbell & Sergey for the reviews. :)
2015-08-19 22:41:39 +02:00
|
|
|
void BLI_filelist_entry_free(struct direntry *entry);
|
|
|
|
void BLI_filelist_free(struct direntry *filelist, const unsigned int nrentries);
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
void BLI_filelist_entry_size_to_string(const struct stat *st,
|
|
|
|
const uint64_t sz,
|
|
|
|
const bool compact,
|
|
|
|
char r_size[]);
|
Final 'FileBrowser First Stage' merge.
It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser.
From user perspective, it:
* Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender!
* Makes short/long display 'fixed' size (among four choices, like thumbnails mode).
* Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories).
* Consequently, adds datablocks types filtering.
* Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared).
* Generates thumbnails way faster.
From code perspective, it:
* Is ready for asset engine needs (on data structure level in filebrowser's listing).
* Simplifies and makes 'generic' file listing much lighter.
* Separates file listing in three different aspects:
** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct.
** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.).
** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one.
* Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items.
* Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs).
* Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too).
Revision: https://developer.blender.org/D1316
Thanks to Campbell & Sergey for the reviews. :)
2015-08-19 22:41:39 +02:00
|
|
|
void BLI_filelist_entry_mode_to_string(
|
2019-04-17 06:17:24 +02:00
|
|
|
const struct stat *st, const bool compact, char r_mode1[], char r_mode2[], char r_mode3[]);
|
Final 'FileBrowser First Stage' merge.
It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser.
From user perspective, it:
* Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender!
* Makes short/long display 'fixed' size (among four choices, like thumbnails mode).
* Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories).
* Consequently, adds datablocks types filtering.
* Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared).
* Generates thumbnails way faster.
From code perspective, it:
* Is ready for asset engine needs (on data structure level in filebrowser's listing).
* Simplifies and makes 'generic' file listing much lighter.
* Separates file listing in three different aspects:
** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct.
** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.).
** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one.
* Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items.
* Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs).
* Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too).
Revision: https://developer.blender.org/D1316
Thanks to Campbell & Sergey for the reviews. :)
2015-08-19 22:41:39 +02:00
|
|
|
void BLI_filelist_entry_owner_to_string(const struct stat *st, const bool compact, char r_owner[]);
|
UI: File Browser Design Overhaul
This is a general redesign of the File Browser GUI and interaction
methods. For screenshots, check patch D5601.
Main changes in short:
* File Browser as floating window
* New layout of regions
* Popovers for view and filter options
* Vertical list view with interactive column header
* New and updated icons
* Keymap consistency fixes
* Many tweaks and fixes to the drawing of views
----
General:
* The file browser now opens as temporary floating window. It closes on
Esc. The header is hidden then.
* When the file browser is opened as regular editor, the header remains
visible.
* All file browser regions are now defined in Python (the button
layout).
* Adjusted related operator UI names.
Keymap:
Keymap is now consistent with other list-based views in Blender, such as
the Outliner.
* Left click to select, double-click to open
* Right-click context menus
* Shift-click to fill selection
* Ctrl-click to extend selection
Operator options:
These previously overlapped with the source list, which caused numerous
issues with resizing and presenting many settings in a small panel area.
It was also generally inconsistent with Blender.
* Moved to new sidebar, which can easily be shown or hidden using a
prominent Options toggle.
* IO operators have new layouts to match this new sidebar, using
sub-panels. This will have to be committed separately (Add-on
repository).
* If operators want to show the options by default, they have the option
to do so (see `WM_FILESEL_SHOW_PROPS`, `hide_props_region`), otherwise
they are hidden by default.
General Layout:
The layout has been changed to be simpler, more standard, and fits
better in with Blender 2.8.
* More conventional layout (file path at top, file name at the bottom,
execute/cancel buttons in bottom right).
* Use of popovers to group controls, and allow for more descriptive
naming.
* Search box is always live now, just like Outliner.
Views:
* Date Modified column combines both date and time, also uses user
friendly strings for recent dates (i.e. "Yesterday", "Today").
* Details columns (file size, modification date/time) are now toggleable
for all display types, they are not hardcoded per display type.
* File sizes now show as B, KB, MB, ... rather than B, KiB, MiB, … They
are now also calculated using base 10 of course.
* Option to sort in inverse order.
Vertical List View:
* This view now used a much simpler single vertical list with columns
for information.
* Users can click on the headers of these columns to order by that
category, and click again to reverse the ordering.
Icons:
* Updated icons by Jendrzych, with better centering.
* Files and folders have new icons in Icon view.
* Both files and folders have reworked superimposed icons that show
users the file/folder type.
* 3D file documents correctly use the 3d file icon, which was unused
previously.
* Workspaces now show their icon on Link/Append - also when listed in
the Outliner.
Minor Python-API breakage:
* `bpy.types.FileSelectParams.display_type`: `LIST_SHORT` and
`LIST_LONG` are replaced by `LIST_VERTICAL` and `LIST_HORIZONTAL`.
Removes the feature where directories would automatically be created if
they are entered into the file path text button, but don't exist. We
were not sure if users use it enough to keep it. We can definitely bring
it back.
----
//Combined effort by @billreynish, @harley, @jendrzych, my university
colleague Brian Meisenheimer and myself.//
Differential Revision: https://developer.blender.org/D5601
Reviewers: Brecht, Bastien
2019-09-03 15:43:38 +02:00
|
|
|
void BLI_filelist_entry_datetime_to_string(const struct stat *st,
|
|
|
|
const int64_t ts,
|
|
|
|
const bool compact,
|
|
|
|
char r_time[],
|
|
|
|
char r_date[],
|
|
|
|
bool *r_is_today,
|
|
|
|
bool *r_is_yesterday);
|
2011-10-22 15:35:49 +00:00
|
|
|
|
|
|
|
/* Files */
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
FILE *BLI_fopen(const char *filename, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
void *BLI_gzopen(const char *filename, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
int BLI_open(const char *filename, int oflag, int pmode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
int BLI_access(const char *filename, int mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2012-03-20 02:17:37 +00:00
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
bool BLI_file_is_writable(const char *file) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
|
|
|
bool BLI_file_touch(const char *file) ATTR_NONNULL();
|
2011-10-22 15:35:49 +00:00
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
#if 0 /* UNUSED */
|
2019-04-17 08:24:14 +02:00
|
|
|
int BLI_file_gzip(const char *from, const char *to) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2014-09-04 21:48:36 +10:00
|
|
|
#endif
|
2019-04-17 06:17:24 +02:00
|
|
|
char *BLI_file_ungzip_to_mem(const char *from_file, int *r_size) ATTR_WARN_UNUSED_RESULT
|
|
|
|
ATTR_NONNULL();
|
2011-10-22 15:35:49 +00:00
|
|
|
|
2015-02-18 07:26:10 +11:00
|
|
|
size_t BLI_file_descriptor_size(int file) ATTR_WARN_UNUSED_RESULT;
|
|
|
|
size_t BLI_file_size(const char *file) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2011-10-22 15:35:49 +00:00
|
|
|
|
2012-05-12 20:39:39 +00:00
|
|
|
/* compare if one was last modified before the other */
|
2019-04-17 06:17:24 +02:00
|
|
|
bool BLI_file_older(const char *file1, const char *file2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2011-10-22 15:35:49 +00:00
|
|
|
|
2012-05-12 20:39:39 +00:00
|
|
|
/* read ascii file as lines, empty list if reading fails */
|
2015-02-18 07:26:10 +11:00
|
|
|
struct LinkNode *BLI_file_read_as_lines(const char *file) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
|
2019-04-17 06:17:24 +02:00
|
|
|
void *BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size);
|
2020-02-26 18:01:42 +11:00
|
|
|
void *BLI_file_read_text_as_mem_with_newline_as_nil(const char *filepath,
|
|
|
|
bool trim_trailing_space,
|
|
|
|
size_t pad_bytes,
|
|
|
|
size_t *r_size);
|
2019-04-17 06:17:24 +02:00
|
|
|
void *BLI_file_read_binary_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size);
|
|
|
|
void BLI_file_free_lines(struct LinkNode *lines);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
2012-09-03 10:12:25 +00:00
|
|
|
/* this weirdo pops up in two places ... */
|
|
|
|
#if !defined(WIN32)
|
|
|
|
# ifndef O_BINARY
|
|
|
|
# define O_BINARY 0
|
|
|
|
# endif
|
2012-10-06 07:03:03 +00:00
|
|
|
#else
|
|
|
|
void BLI_get_short_name(char short_name[256], const char *filename);
|
2012-09-03 10:12:25 +00:00
|
|
|
#endif
|
|
|
|
|
2010-10-06 16:23:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
#endif /* __BLI_FILEOPS_H__ */
|