Commit Graph

66 Commits

Author SHA1 Message Date
Ahmed.S.ElAfifi 834c80c7b0 Fix: change flag -i (which is preserved to `cp`) to --exclude-from 2019-09-10 11:51:28 +02:00
Ahmed.S.ElAfifi 26db348453 Add dot_ignore file functionality to ignore needed patterns 2019-07-21 17:37:16 +02:00
Matteo Cypriani 476f311559 Update version number to 0.2.1 2019-03-04 23:54:49 +01:00
Matteo Cypriani 186e598a7d gcp: switch from GObject to equivalent GLib methods
Fixes deprecation warnings.
2019-03-04 23:43:01 +01:00
Matteo Cypriani 9469a59718 gcp: vertical spacing 2018-10-16 10:31:15 +02:00
Matteo Cypriani 462676e803 Bump version to 0.2.1.dev1 2018-10-16 10:23:33 +02:00
Matteo Cypriani 7bff021cd3 Update translation files 2018-10-14 20:59:09 +02:00
Matteo Cypriani 43da9301fa Rename --fs-fix -> --fix-filenames
Also, reorder/group options so that the help message is more readable.
2018-10-14 19:08:31 +02:00
Matteo Cypriani 007d04dd16 "Rename" gcp
Following Goffi's will, this commit renames Gcp (Goffi's CoPier) into
gcp (Gcp CoPier).
2018-10-14 16:52:27 +02:00
Matteo Cypriani 6dbb4152f5 gcp: fix bug introduced in cbd9648
gcp was not exiting after copying.
2018-07-04 20:57:38 +02:00
Matteo Cypriani f99dcc1e2c First pass with Prospector
Also some beautifying, line wrapping, etc.
2018-06-20 17:13:45 +02:00
Matteo Cypriani cbd96480c5 gcp: reorganize __copyNextFile() 2018-06-20 17:13:45 +02:00
Matteo Cypriani c4db1808da i18n: re-generate gcp.po, update fr.po
Also fixed some messages.
2018-06-20 17:13:45 +02:00
Matteo Cypriani b83d37a5e9 Handle --preserve=all 2018-06-20 17:13:45 +02:00
Matteo Cypriani 2e0e8ba994 Add -p switch 2018-06-20 17:13:45 +02:00
Matteo Cypriani d40548f287 Add -R switch 2018-06-20 17:13:45 +02:00
Matteo Cypriani 193a0e2784 gcp: reindent argparse code 2018-06-20 17:13:45 +02:00
Matteo Cypriani 307ffbea86 gcp: fix newline mangling in version message 2018-06-20 17:13:45 +02:00
Matteo Cypriani e008689b9b gcp: run 2to3 2018-06-20 17:13:45 +02:00
Matteo Cypriani f436127427 gcp: update copyright & version 2018-06-20 17:13:45 +02:00
Matteo Cypriani 7fa513de68 Fix typo "invalide" in user message 2018-04-15 17:45:16 +02:00
Matteo Cypriani cd317355f1 Actually convert to Python3
- Update shebang.
- Drop encoding line, useless in Python3.
- Use GObject rather than gobject.
2018-04-15 16:50:25 +02:00
Matteo Cypriani ecfe87cd99 Add option --fs-fix=<auto|force|no>
Currently, the filesystem fixes are applied only for FAT, in which these
special characters (:, ", etc.) are actually forbidden. NTFS, however, will
allow you to create file names containing these characters, but Windows will
still be unable to deal with the files (even to rename them!).

--fs-fix=force will be useful when copying to a NTFS filesystem that will be
read on Windows.

--fs-fix=no is the same as --no-fs-fix.

--fs-fix=auto is the same as the current default behaviour (i.e. fix names only
for FAT).
2018-04-15 16:39:10 +02:00
Jingbei Li 45905e8f35 don't preserve any attributes by default 2018-04-15 16:10:54 +02:00
Jingbei Li 774f371070 migrate to python3
- updated .gitignore
- updated README to markdown format
- deprecated distribution
- updated optparse to argparse
- deprecated all coding functions
- fix some syntax errors

Now this package should be python3-only.
2018-04-15 16:10:54 +02:00
Matteo Cypriani 67469febfb Strip trailing whitespaces 2018-04-15 16:10:54 +02:00
Goffi 3da160e582 update about's gcp's page 2011-06-21 15:12:41 +02:00
Goffi a4d71cb78e updated version number & changelog 2011-06-20 14:30:45 +02:00
Goffi f2e43f64b6 fixed exit status 2011-06-20 14:25:08 +02:00
Goffi 22799d148d exit status updated and shown in manpage 2011-06-20 12:57:15 +02:00
Goffi 4271439cab non 0 return code on failure:
- return 2 if files have not been copied
- return 1 if file have been copied but errors occured
2011-06-20 02:57:54 +02:00
Goffi bee2cd541d gcp DIR1 DIR2 better handling:
- gcp DIR1 DIR2 where DIR2 exists is fixed
- special case gcp DIR1 DIR2 where DIR2 doesn't exist managed
- comments update
- refactore source_path in source_dir
2011-06-20 01:27:31 +02:00
Goffi 58d89ee8c0 version update 2011-06-16 15:40:16 +02:00
Goffi 018978efa4 Thomas Preud'homme email address update 2011-06-05 19:31:40 +02:00
Goffi 17bc3cee4d removed bad fd close 2011-06-04 21:23:06 +02:00
Goffi 7e6efb49a9 fixed crash when source file can't be opened 2011-06-04 20:58:36 +02:00
Goffi 2f998e05a3 Symbolic link skipping 2011-06-04 20:55:44 +02:00
Goffi d33f55103c fixed crash when a source dir can't be accessed 2011-06-04 20:32:50 +02:00
Thomas Preud'homme 8e600353d7 os.stat precision fix 2011-06-04 19:28:57 +02:00
Goffi 5256579ac4 updated date in source code & README + updated links 2011-01-25 16:59:56 +01:00
Goffi cac1417bbc changed version to 0.1.1 2010-09-30 18:11:19 +08:00
Goffi 7226074954 Added 'gcp file dest_file' syntax management 2010-09-30 17:56:59 +08:00
Goffi 3df4c89e01 fixed bad closure when a file already exists 2010-09-30 16:44:52 +08:00
Goffi 7e6275ab07 removed color from copy failed error message 2010-09-30 16:27:28 +08:00
Goffi ea3b75a565 Error are now shown after the end of the copy 2010-09-30 16:18:45 +08:00
Goffi 19e736d61c Journal double-entry check + unicode source_path fix + typo
- journal now fail assertion when trying to write log whitout entry created, or when trying to create 2 entries without closing the first one
- unicode source_path are now fixed: there was a decoding error when trying to add an unicode source_path from a second instance of gcp
- small typo in --help page
2010-09-30 15:49:16 +08:00
Goffi 454c638727 --no-unicode-fix commented, and README update 2010-09-28 18:00:06 +08:00
Goffi 64b248e79c fixed sources-replace 2010-09-28 16:10:34 +08:00
Goffi dd56476732 Improved sources files management
- sources saving command are now shown in a group in --help and now start with --sources prefix
- moving sources saving management in a separate method
- added --sources-del
2010-09-28 16:07:45 +08:00
Goffi 13fd341c18 Fixed yet another utf-8 encoding issue + added a space on progress bar before percentage 2010-09-28 15:45:28 +08:00