Commit graph

55 commits

Author SHA1 Message Date
abitmore
64b4bd4900 Wrap system_error::what() in a string 2018-08-09 16:31:56 -04:00
abitmore
35cb63d3ea Call FC wrappers of copy and remove in rename()
to get around boost 1.67 boost::filesystem::copy() null pointer dereferencing issue
2018-08-09 12:57:08 -04:00
BITSG-Jerry
ce7cb0dd06 Check error after called boost::filesystem::copy()
and rethrow if found an error. This is to get around boost 1.67 issue https://svn.boost.org/trac10/ticket/13585
2018-08-09 12:38:09 -04:00
liukunyu
1eca4959e7 fix import_key crash for wallet 2018-08-09 10:38:26 +00:00
Valera Cogut
20724f7ecc fixed issue #809 2018-07-09 17:17:32 +03:00
Peter Conrad
81c8d89341 Added max_depth parameter to variant conversions 2018-03-13 22:00:18 +01:00
arhag
66d4b0841d Changes to fc to get MinGW cross-compilation working 2016-05-22 01:33:19 -04:00
Vikram Rajkumar
43659333d3 Fix compiler warning 2015-02-03 18:12:37 -05:00
Eric Frias
a33bb60cf6 Add a simplified lock file class to use to prevent two applications from using the same resource 2015-01-21 19:29:38 -05:00
theoretical
524093ce1e Implement chmod function (no-op on Windows) 2014-12-31 14:42:36 -05:00
Nathan Hourt
1a78fd2931 Add directory_size call
Recursively iterate the specified directory, summing up the files
inside, and return the total size.
2014-10-13 15:17:14 -04:00
Eric Frias
4e83427df0 Improvements for handling unicode filenames on Windows. When converting fc::path to/from fc::variant, use utf8 encoding. Replace several places where we use a std::ifstream and open it with a char* filename with a boost::filesystem::ifstream and open it with a boost::filesystem::path, which does unicode correctly. 2014-10-09 16:21:52 -04:00
Eric Frias
8def04f341 Add a path::preferred_string() function that generates a string in the platform's preferred format, using backslashes on win32 (uses boost::filesystem::path::make_preferred()).
Modify the log file configuration and rotating code to call to_native_ansi_path() and do more paths manipulation in fc::path objects and less in std::strings, in an attempt to improve BitShares/bitshares_toolkit#791
2014-09-25 08:57:31 -04:00
Eric Frias
6cddd42cfe On windows, change the method we use for getting the home directory and app data directory to get it in unicode form. Partial fix for BitShares/bitshares_toolkit#791 2014-09-20 19:15:28 -04:00
PaulEU
4890351b34 Added OpenSSL configuration file path. (qt_wallet issue #10 Some clients on Windows 7 quit/crash on start) 2014-07-23 00:18:09 +02:00
Eric Frias
2b3728af37 Add -> for directory_iterator 2014-06-20 10:38:21 -04:00
Eric Frias
6898484321 Remove a few annoying unreferenced variables 2014-06-16 12:03:20 -04:00
Eric Frias
888a01881a Change the function that returns relative time strings to generate times relative to an arbitrary clock instead of always using time_point::now(). (this is so we can use blockchain::now() instead).
Remove unused include.
2014-06-15 14:16:22 -04:00
Daniel Larimer
17aefe29de using explicit bool operator for optional 2014-05-20 11:25:31 -04:00
alt
7506790bee filesystem::rename() can handle file from cross device 2014-03-20 09:27:32 +08:00
Yuvaraj
a5c8a07dc6 App dir for Linux is the home directory. 2014-02-16 13:21:14 +05:30
Daniel Larimer
00907d8f57 fix app_path 2014-02-15 01:29:21 -05:00
Daniel Larimer
0ecd66fa73 adding utility methods for getting home dir and app dir 2014-02-15 01:22:59 -05:00
Daniel Larimer
7d81035e14 fix coding standard violations 2014-01-14 03:56:15 -05:00
vogel76
59f80e34d2 [BW]: [NIP] Further changes to get to work paths containing unicode characters:
- fc::path extended by method toNativeAnsiPath allowing to safely convert current unicode path into its ansi equivalent
- fc::path to_variant uses toNativeAnsiPath method instead of generic_string to avoid loss of data while serializing a path
- fc::mmap_struct_base::open should use toNativeAnsiPath method instead of generic_string to access ansi path
- fc::json::save_to_file should directly pass fc::path to underlying stream instead of generic_string.
2014-01-10 00:05:18 +01:00
vogel76
6261a25442 [BW]: [NIP] Support for unicode paths to avoid problems while accessing paths containing native characters. 2014-01-09 13:29:47 +01:00
Daniel Larimer
f18e16cbc7 adding resize_file 2013-07-12 22:05:38 -04:00
Daniel Larimer
7e61059806 fix bugs in optional implementation 2013-07-05 19:48:59 -04:00
Daniel Larimer
59a121d64b Updating FC with changes from phoenix-int 2013-06-05 15:19:00 -04:00
Daniel Larimer
5499d5bb30 Adding udp multicast support, filesystem::rename 2013-03-24 00:11:28 -04:00
Daniel Larimer
7b9a14918c merge latest changes 2013-03-01 18:56:06 -05:00
Daniel Larimer
25872b11b8 Updated fc::value implementation
Improved fc::value to use enum types instead of strings.
Moved code from header to cpp file
Added extra utility method to simplify syntax for generating key-value pairs for errors/logs.
Removed need to create copies when casting strings, arrays, or objects from values
2013-02-07 16:08:43 -05:00
Daniel Larimer
68e949a699 fix bugs 2013-01-30 23:36:51 -05:00
Daniel Larimer
763ae69982 error handling enhancements, recursive var subst 2013-01-27 22:45:46 -05:00
Daniel Larimer
9858e553bf various updates to path and error substitution 2013-01-25 13:19:23 -05:00
Daniel Larimer
1bbe3b7c41 fix crash in fc::cin 2013-01-14 17:12:21 -05:00
Daniel Larimer
682c005350 fixes 2012-12-29 12:00:19 -05:00
Daniel Larimer
42cf0e62a8 bug fixes / windows port 2012-12-20 15:39:35 -05:00
Daniel Larimer
73f94bcebe various updates 2012-12-19 12:23:12 -05:00
Daniel Larimer
161ce54cb8 windows port 2012-12-18 14:37:14 -05:00
Daniel Larimer
274146229e Merge branch 'master' of github.com:bytemaster/fc 2012-12-17 14:07:02 -05:00
Daniel Larimer
f41ea98854 attempt to fix unresolved ref 2012-12-17 14:06:06 -05:00
Daniel Larimer
6471249bb8 adding support for more value serialization 2012-12-16 20:13:09 -05:00
Daniel Larimer
7ca7aede5f implementing fc::absolute for path 2012-12-12 13:26:41 -05:00
Daniel Larimer
2e6bd7253f implemented file system directoriy iterator / fixed raw packing / datastream exceptions 2012-12-02 12:35:05 -05:00
Daniel Larimer
1a5e10ee26 add tmp/unique dir wrapper for boost filesystem 2012-11-26 14:16:49 -05:00
Daniel Larimer
ba4eb96d88 adding fstream, fix bugs 2012-11-15 12:37:56 -05:00
Daniel Larimer
53bb959c5d expanded filesystem api + value api 2012-11-15 12:08:31 -05:00
Daniel Larimer
6bf25ae8e7 fix json_rpc_errorobj 2012-11-15 11:55:36 -05:00
Daniel Larimer
30b3f75fab fix ssh generic paths 2012-11-08 09:44:27 -05:00