normCast modified so only basename is conveyed for enqueued file items. Also fix to wscript for Python 3 compatibility
parent
31d1d6f8a5
commit
6d79812341
|
|
@ -315,7 +315,7 @@ bool NormCaster::TxReady() const
|
||||||
|
|
||||||
bool NormCaster::StageNextTxFile()
|
bool NormCaster::StageNextTxFile()
|
||||||
{
|
{
|
||||||
// Pull next file path from "tx_file_list" as stage as "tx_pending_path"
|
// Pull next file path from "tx_file_list" and stage as "tx_pending_path"
|
||||||
if (tx_file_iterator.GetNextFile(tx_pending_path))
|
if (tx_file_iterator.GetNextFile(tx_pending_path))
|
||||||
{
|
{
|
||||||
// This code omits the source directory prefix from the name transmitted
|
// This code omits the source directory prefix from the name transmitted
|
||||||
|
|
@ -333,12 +333,12 @@ bool NormCaster::StageNextTxFile()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Adjust the prefix len so only the file basename is conveyed.
|
// Adjust the prefix len so only the file basename is conveyed.
|
||||||
// (We use a reverse ProtoTokenator tokenization to get the
|
// (We use a reverse ProtoTokenator tokenization limited to a
|
||||||
// file basename string).
|
// single split to get the file basename string).
|
||||||
ProtoTokenator tk(tx_pending_path, PROTO_PATH_DELIMITER, true, 1, true);
|
ProtoTokenator tk(tx_pending_path, PROTO_PATH_DELIMITER, true, 1, true);
|
||||||
const char* basename = tk.GetNextItem();
|
const char* basename = tk.GetNextItem();
|
||||||
ASSERT(NULL != basename);
|
ASSERT(NULL != basename);
|
||||||
unsigned namelen = strlen(basename);
|
unsigned int namelen = strlen(basename);
|
||||||
tx_pending_prefix_len = strlen(tx_pending_path) - namelen;
|
tx_pending_prefix_len = strlen(tx_pending_path) - namelen;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue