mschilli / net-google-drive-simple

Net::Google::Drive::Simple CPAN Module
Other
11 stars 22 forks source link

Second value returned by children() changed in 0.13 [rt.cpan.org #123713] #24

Open atoomic opened 5 years ago

atoomic commented 5 years ago

Migrated from rt.cpan.org#123713 (status was 'new')

Requestors:

Attachments:

From tim@cpanel.net on 2017-11-22 19:38:13 :

In 0.12 the children() function used to return the id of the folder as the second value as described in the docs:
my( $children, $parent ) = $gd->children( "/path/to" );
If the caller now wants to e.g. insert a file into the directory, its ID is available in $parent.

In 0.13 it now returns the id of the parent of the folder, instead.  The attached patch changes it to behave as it did before.
atoomic commented 5 years ago

PR #14 is fixing that