|
Blender
V2.59
|
#include <string.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <errno.h>#include "zlib.h"#include <unistd.h>#include <sys/param.h>#include "BLI_blenlib.h"#include "BKE_utildefines.h"#include "BLO_sys_types.h"Go to the source code of this file.
Functions | |
| int | BLI_gzip (const char *from, const char *to) |
| int | BLI_is_writable (const char *filename) |
| int | BLI_touch (const char *file) |
| int | BLI_exists (const char *file) |
| int | BLI_delete (const char *file, int dir, int recursive) |
| int | BLI_move (const char *file, const char *to) |
| int | BLI_copy_fileops (const char *file, const char *to) |
| int | BLI_link (const char *file, const char *to) |
| void | BLI_recurdir_fileops (const char *dirname) |
| int | BLI_rename (const char *from, const char *to) |
Variables | |
| static char | str [12+(MAXPATHLEN *2)] |
Definition in file fileops.c.
| int BLI_copy_fileops | ( | const char * | file, |
| const char * | to | ||
| ) |
Definition at line 309 of file fileops.c.
References BLI_snprintf(), and str.
Referenced by ImagesExporter::operator()(), and writePackedFile().
| int BLI_delete | ( | const char * | file, |
| int | dir, | ||
| int | recursive | ||
| ) |
Definition at line 282 of file fileops.c.
References BLI_snprintf(), and str.
Referenced by BKE_ptcache_id_clear(), BKE_ptcache_remove(), BLI_is_writable(), BLI_rename(), BLO_write_file(), cdf_remove(), file_delete_exec(), fluid_init_filepaths(), fluidsim_delete_until_lastframe(), IMB_thumb_delete(), RE_BlenderAnim(), wm_autosave_delete(), and writePackedFile().
| int BLI_exists | ( | const char * | file | ) |
Definition at line 151 of file fileops.c.
References BLI_exist().
Referenced by autocomplete_directory(), BKE_ptcache_id_exist(), BLI_make_existing_file(), BLI_recurdir_fileops(), BLI_rename(), BLI_where_am_i(), cache_voxeldata(), checkMissingFiles(), file_directory_exec(), file_directory_invoke(), file_directory_new_exec(), file_draw_check_exists(), findMissingFiles(), fsmenu_read_system(), get_filename(), IMB_exr_begin_read(), IMB_thumb_delete(), IMB_thumb_manage(), namebutton_cb(), new_folder_path(), openanim(), ptcache_file_open(), renamebutton_cb(), save_exec(), seq_proxy_fetch(), space_image_file_exists_poll(), text_file_modified(), text_ignore_modified(), uiPupMenuSaveOver(), unpackFile(), wm_autosave_delete(), wm_autosave_location(), WM_read_history(), WM_read_homefile(), and writePackedFile().
| int BLI_gzip | ( | const char * | from, |
| const char * | to | ||
| ) |
| int BLI_is_writable | ( | const char * | filename | ) |
Definition at line 106 of file fileops.c.
References BLI_delete(), and O_BINARY.
Referenced by RE_is_rendering_allowed(), save_exec(), and space_image_file_exists_poll().
| int BLI_link | ( | const char * | file, |
| const char * | to | ||
| ) |
Definition at line 315 of file fileops.c.
References BLI_snprintf(), and str.
| int BLI_move | ( | const char * | file, |
| const char * | to | ||
| ) |
Definition at line 303 of file fileops.c.
References BLI_snprintf(), and str.
| void BLI_recurdir_fileops | ( | const char * | dirname | ) |
Definition at line 321 of file fileops.c.
References BLI_exists(), BLI_last_slash(), and BLI_recurdir_fileops().
Referenced by BLI_get_folder_create(), BLI_make_existing_file(), BLI_recurdir_fileops(), file_directory_exec(), file_directory_new_exec(), and IMB_thumb_makedirs().
| int BLI_rename | ( | const char * | from, |
| const char * | to | ||
| ) |
Definition at line 339 of file fileops.c.
References BLI_delete(), and BLI_exists().
Referenced by BKE_ptcache_disk_cache_rename(), BLO_write_file(), do_history(), IMB_thumb_create(), renamebutton_cb(), wm_autosave_delete(), and writePackedFile().
| int BLI_touch | ( | const char * | file | ) |
Definition at line 134 of file fileops.c.
References NULL.
Referenced by collada_export(), RE_BlenderAnim(), and touch_seq_files().
char str[12+(MAXPATHLEN *2)] [static] |
Definition at line 280 of file fileops.c.
Referenced by add_name(), add_text(), arraysize(), BakeTime(), FBlender::FBlender::BeginScript(), Bevel(), BevelWeight(), BKE_add_image_file(), BKE_undo_save_quit(), bl_test::blend_to_md5(), BLI_copy_fileops(), BLI_delete(), BLI_dynstr_printf(), BLI_link(), BLI_move(), BLI_utf8_invalid_byte(), BLO_blendhandle_get_linkable_groups(), BoneEnvelope(), BoneRoll(), BoneSize(), bpy_lib_enter(), bUnit_ReplaceString(), console_draw_string(), console_lb_add_str__internal(), copymenu_properties(), cp_property(), Crease(), CurveShrinkFatten(), DNA_elem_array_size(), do_versions(), draw_actuatorbuttons(), draw_cfra_number(), draw_image_info(), draw_modifier(), draw_motion_path_instance(), draw_nodespace_color_info(), draw_sensorbuttons(), draw_seq_handle(), draw_seq_text(), draw_suggestion_list(), ed_marker_move_modal(), ed_undo_push_exec(), EdgeSlide(), editFont_to_undoFont(), exr_rgba_channelname(), file_browse_exec(), file_browse_invoke(), file_delete_exec(), get_words(), gpu_str_skip_token(), handle_subversion_warning(), STR_HashedString::hash(), headerResize(), headerTranslation(), history_append_exec(), ibJpegImageFromCinfo(), image_load_image_file(), image_load_movie_file(), init_structDNA(), insert_exec(), insert_invoke(), layer_menu(), list_item_row(), bl_test::main(), make_memhead_header(), make_renderinfo_string(), make_structDNA(), make_unique_prop_names_cb(), menudata_add_item(), mesh_layers_menu(), mesh_layers_menu_concat(), minimize_stretch_iteration(), Mirror(), multiple_scattering_diffusion(), nla_draw_strip_text(), node_uiblocks_init(), ntreeCompositExecTree(), open_exec(), outliner_add_object_contents(), outliner_draw_keymapbuts(), outliner_object_operation_exec(), pass_menu(), print_part_stats(), GHOST_EventPrinter::processEvent(), PushPull(), radial_control_get_path(), RE_is_rendering_allowed(), read_render_result(), reload_sequence_new_file(), render_composit_stats(), reopen_text(), replace_exec(), report_textview_init__internal(), reports_to_text_exec(), Resize(), dump_rna2xml::rna2xml(), Rotation(), save_as_exec(), save_as_invoke(), scroll_printstr(), scrollback_append_exec(), rna_dump::seek(), seq_free_animdata(), seq_offset_animdata(), SeqSlide(), set_addons(), set_case(), Shear(), ShrinkFatten(), slot_menu(), sound_new_file(), template_ID(), text_font_draw_character(), threaded_tile_processor(), Tilt(), TimeScale(), TimeSlide(), TimeTranslate(), toggle_case_exec(), ToSphere(), touch_seq_files(), Trackball(), Translation(), txt_format_line(), ui_apply_autokey_undo(), ui_but_copy_paste(), ui_popup_menu_create(), ui_textedit_autocomplete(), ui_textedit_copypaste(), ui_textedit_delete(), ui_textedit_delete_selection(), ui_textedit_move(), ui_textedit_move_end(), ui_textedit_type_ascii(), ui_tooltip_create(), UI_view2d_text_cache_draw(), uiPupMenuReports(), uiTemplateImage(), uiTemplateList(), undoFont_to_editFont(), v3d_editvertex_buts(), view3d_cached_text_draw_end(), view3d_modeselect_pup(), vol_precache_objectinstance_threads(), Warp(), widget_draw_text(), wm_autosave_delete(), WM_key_event_operator_string(), WM_keymap_item_to_string(), and wm_window_title().