Blender V2.61 - r43446
Functions

BLI_fileops.h File Reference

File and directory operations. More...

#include "BLI_fileops_types.h"
#include <stddef.h>

Go to the source code of this file.

Functions

int BLI_exists (const char *path)
int BLI_copy (const char *path, const char *to)
int BLI_rename (const char *from, const char *to)
int BLI_delete (const char *path, int dir, int recursive)
int BLI_move (const char *path, const char *to)
int BLI_create_symlink (const char *path, const char *to)
int BLI_is_dir (const char *path)
int BLI_is_file (const char *path)
void BLI_dir_create_recursive (const char *dir)
double BLI_dir_free_space (const char *dir)
char * BLI_current_working_dir (char *dir, const int maxlen)
unsigned int BLI_dir_contents (const char *dir, struct direntry **filelist)
int BLI_file_is_writable (const char *file)
int BLI_file_touch (const char *file)
int BLI_file_gzip (const char *from, const char *to)
char * BLI_file_ungzip_to_mem (const char *from_file, int *size_r)
size_t BLI_file_descriptor_size (int file)
size_t BLI_file_size (const char *file)
int BLI_file_older (const char *file1, const char *file2)
struct LinkNodeBLI_file_read_as_lines (const char *file)
void BLI_file_free_lines (struct LinkNode *lines)

Detailed Description

File and directory operations.

Definition in file BLI_fileops.h.


Function Documentation

int BLI_copy ( const char *  path,
const char *  to 
)

Definition at line 358 of file fileops.c.

References BLI_snprintf(), and str.

Referenced by ImagesExporter::operator()(), and writePackedFile().

int BLI_create_symlink ( const char *  path,
const char *  to 
)

Definition at line 365 of file fileops.c.

References BLI_snprintf(), and str.

char* BLI_current_working_dir ( char *  dir,
const int  maxlen 
)
int BLI_delete ( const char *  path,
int  dir,
int  recursive 
)
unsigned int BLI_dir_contents ( const char *  dir,
struct direntry **  filelist 
)

Definition at line 397 of file storage.c.

References actnum, bli_adddirstrings(), bli_builddir(), NULL, and totnum.

Referenced by filelist_read_dir(), and init_iconfile_list().

void BLI_dir_create_recursive ( const char *  dir)
double BLI_dir_free_space ( const char *  dir)

Definition at line 143 of file storage.c.

References DWORD, FILE_MAXDIR, len(), and strlen().

int BLI_exists ( const char *  path)
size_t BLI_file_descriptor_size ( int  file)
void BLI_file_free_lines ( struct LinkNode lines)

Definition at line 526 of file storage.c.

References BLI_linklist_free(), and MEM_freeN().

Referenced by WM_read_history().

int BLI_file_gzip ( const char *  from,
const char *  to 
)

Definition at line 66 of file fileops.c.

References err, NULL, and O_BINARY.

Referenced by BLO_write_file().

int BLI_file_is_writable ( const char *  file)

Definition at line 152 of file fileops.c.

References BLI_delete(), and O_BINARY.

Referenced by image_save_exec(), RE_is_rendering_allowed(), and space_image_file_exists_poll().

int BLI_file_older ( const char *  file1,
const char *  file2 
)

Definition at line 531 of file storage.c.

Referenced by imb_cache_filename().

struct LinkNode* BLI_file_read_as_lines ( const char *  file) [read]
size_t BLI_file_size ( const char *  file)

Definition at line 430 of file storage.c.

References BLI_file_descriptor_size(), O_BINARY, and size().

Referenced by IMB_exr_begin_read(), IMB_thumb_create(), and RE_BlenderAnim().

int BLI_file_touch ( const char *  file)

Definition at line 180 of file fileops.c.

References NULL.

Referenced by collada_export(), RE_BlenderAnim(), and touch_seq_files().

char* BLI_file_ungzip_to_mem ( const char *  from_file,
int *  size_r 
)

Definition at line 111 of file fileops.c.

References MEM_callocN(), MEM_freeN(), MEM_reallocN(), NULL, and size().

int BLI_is_dir ( const char *  path)
int BLI_is_file ( const char *  path)

Definition at line 479 of file storage.c.

References BLI_exists().

Referenced by file_directory_exec(), and file_draw_check_exists().

int BLI_move ( const char *  path,
const char *  to 
)

Definition at line 351 of file fileops.c.

References BLI_snprintf(), and str.

int BLI_rename ( const char *  from,
const char *  to 
)